summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTechSmurf <TechSmurf@users.noreply.github.com>2016-05-01 21:34:46 -0700
committerRenato Botelho <renato@netgate.com>2016-05-20 11:38:48 -0300
commit7f1349f73bea89164503b9872a04c1dc094fc6ec (patch)
tree30c6fb0dd2cb8c4400a01d5d8b7bbbdcba7aa893 /src
parent52665e3d913ae0c4deb3641b850eea9f8ccc1330 (diff)
downloadpfsense-7f1349f73bea89164503b9872a04c1dc094fc6ec.zip
pfsense-7f1349f73bea89164503b9872a04c1dc094fc6ec.tar.gz
Add freeDNS v6 support
FreeDNS IPv6 support confirmed working using same method as v4 with v6 source address. Simple second service with _useIPv6 (cherry picked from commit ac16181a2cfefec293e0562a7bfe8e2f7140e191)
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/dyndns.class9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class
index 419c980..e53bfe1 100644
--- a/src/etc/inc/dyndns.class
+++ b/src/etc/inc/dyndns.class
@@ -12,6 +12,7 @@
* - DynS (dyns.org)
* - ZoneEdit (zoneedit.com)
* - FreeDNS (freedns.afraid.org)
+ * - FreeDNS IPv6 (freedns.afraid.org)
* - Loopia (loopia.se)
* - StaticCling (staticcling.org)
* - DNSexit (dnsexit.com)
@@ -60,7 +61,8 @@
* ZoneEdit - Last Tested: NEVER
* Dyns - Last Tested: NEVER
* ODS - Last Tested: 02 August 2005
- * FreeDNS - Last Tested: 23 Feb 2011
+ * FreeDNS - Last Tested: 01 May 2016
+ * FreeDNS IPv6 - Last Tested: 01 May 2016
* Loopia - Last Tested: NEVER
* StaticCling - Last Tested: 27 April 2006
* DNSexit - Last Tested: 20 July 2008
@@ -169,6 +171,7 @@
if (!$dnsService) $this->_error(2);
switch ($dnsService) {
case 'freedns':
+ case 'freedns-v6':
if (!$dnsHost) $this->_error(5);
break;
case 'namecheap':
@@ -193,6 +196,7 @@
case 'he-net-v6':
case 'custom-v6':
case 'spdns-v6':
+ case 'freedns-v6':
$this->_useIPv6 = true;
break;
default:
@@ -249,6 +253,7 @@
case 'dyns':
case 'ods':
case 'freedns':
+ case 'freedns-v6':
case 'loopia':
case 'staticcling':
case 'dnsexit':
@@ -494,6 +499,7 @@
$this->_checkStatus(0, $code);
break;
case 'freedns':
+ case 'freedns-v6':
$needIP = FALSE;
curl_setopt($ch, CURLOPT_URL, 'https://freedns.afraid.org/dynamic/update.php?' . $this->_dnsPass);
break;
@@ -1069,6 +1075,7 @@
}
break;
case 'freedns':
+ case 'freedns-v6':
if (preg_match("/has not changed./i", $data)) {
$status = $status_intro . $success_str . gettext("No Change In IP Address");
$successful_update = true;
OpenPOWER on IntegriCloud