diff options
author | Martin Hagelin <martin@hagelin.nu> | 2017-06-09 09:10:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-09 09:10:50 +0200 |
commit | 6db163982378139880394b43641f3d0cdc8d281c (patch) | |
tree | 0e01c062055b7909a2835e91b0ed8eedcb13af66 /src/etc | |
parent | a550ca4e93dc433dac85e828355897913c07fedd (diff) | |
download | pfsense-6db163982378139880394b43641f3d0cdc8d281c.zip pfsense-6db163982378139880394b43641f3d0cdc8d281c.tar.gz |
Fix DNS wildcard support for Loopia
Fix for the problem that wildcard CNAME records disappear from Loopia when doing a DNS update. As discussed here: https://forum.pfsense.org/index.php?topic=67793.0
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/dyndns.class | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class index 3fa2613..07b34bb 100644 --- a/src/etc/inc/dyndns.class +++ b/src/etc/inc/dyndns.class @@ -571,8 +571,9 @@ break; case 'loopia': $needsIP = TRUE; + if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") $this->_dnsWildcard = "ON"; curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass); - curl_setopt($ch, CURLOPT_URL, 'https://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP); + curl_setopt($ch, CURLOPT_URL, 'https://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard); break; case 'opendns': $needsIP = FALSE; |