dns/dyndns: update HE.net TunnelBroker URL (#1119)

* dns/dyndns: update HE.net Tunnelbroker URL

* dns/dyndns: update HE.net dns service

- Don't force IPv4 only host resolving for the dynamic dns update service,
- Enable HTTPS cert verification for HE.net dns, it seems they now use Let's Encrypt, instead of a self-signed certificate.

* dns/dyndns: bump version for HE.net dns and tunnelbroker updates
This commit is contained in:
Dušan Dragić
2019-01-04 14:17:38 +01:00
committed by Franco Fichtner
parent 1f96ba04e3
commit 825f751caa
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= dyndns
PLUGIN_VERSION= 1.11
PLUGIN_VERSION= 1.12
PLUGIN_COMMENT= Dynamic DNS Support
PLUGIN_MAINTAINER= franco@opnsense.org
@@ -597,15 +597,14 @@ class updatedns
case 'he-net':
case 'he-net-v6':
$server = "https://dyn.dns.he.net/nic/update?";
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost . '&password=' . $this->_dnsPass . '&myip=' . $this->_dnsIP);
break;
case 'he-net-tunnelbroker':
$server = "https://ipv4.tunnelbroker.net/ipv4_end.php?";
$server = "https://ipv4.tunnelbroker.net/nic/update?";
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser . ':' . $this->_dnsPass);
curl_setopt($ch, CURLOPT_URL, $server . 'tid=' . $this->_dnsHost);
curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost);
break;
case 'selfhost':
if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") {