summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@pfSense.org>2013-10-15 06:30:52 -0700
committerRenato Botelho <garga@pfSense.org>2013-10-15 06:30:52 -0700
commitc858a035120118e76010e73ac99b4e66ed0c4517 (patch)
tree9bc602abcb0053ea1d8e05f0559382286a26643c
parent09dfec24c6f4f51eaebf321c7fcee8dd65113ba1 (diff)
parenta4a56eb0e78d0b399bb46f250f11f9ffcf7a7f8a (diff)
downloadpfsense-c858a035120118e76010e73ac99b4e66ed0c4517.zip
pfsense-c858a035120118e76010e73ac99b4e66ed0c4517.tar.gz
Merge pull request #817 from stephanel/master
Added OVH DynHOST in dynamic DNS services
-rw-r--r--etc/inc/dyndns.class18
-rw-r--r--etc/inc/services.inc4
2 files changed, 20 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 4a1a737..96a4353 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -69,6 +69,7 @@
* CloudFlare - Last Tested: 30 May 2013
* Eurodns - Last Tested: 27 June 2013
* GratisDNS - Last Tested: 15 August 2012
+ * OVH DynHOST - Last Tested: NEVER
* +====================================================+
*
* @author E.Kristensen
@@ -236,6 +237,7 @@
case 'cloudflare':
case 'eurodns':
case 'gratisdns':
+ case 'ovh-dynhost':
$this->_update();
if($this->_dnsDummyUpdateDone == true) {
// If a dummy update was needed, then sleep a while and do the update again to put the proper address back.
@@ -640,6 +642,21 @@
list($hostname, $domain) = explode(".", $this->_dnsHost, 2);
curl_setopt($ch, CURLOPT_URL, $server . '?u=' . $this->_dnsUser . '&p=' . $this->_dnsPass . '&h=' . $this->_dnsHost . '&d=' . $domain);
break;
+ case 'ovh-dynhost':
+ $needsIP = FALSE;
+ if ($this->_dnsVerboseLog)
+ log_error("OVH DynHOST: ({$this->_dnsHost}) DNS update() starting.");
+ if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") $this->_dnsWildcard = "ON";
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
+ curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass);
+ $server = "https://www.ovh.com/nic/update";
+ $port = "";
+ if($this->_dnsServer)
+ $server = $this->_dnsServer;
+ if($this->_dnsPort)
+ $port = ":" . $this->_dnsPort;
+ curl_setopt($ch, CURLOPT_URL, $server .$port . '?system=dyndns&hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP . '&wildcard='.$this->_dnsWildcard . '&mx=' . $this->_dnsMX . '&backmx=NO');
+ break;
default:
break;
}
@@ -689,6 +706,7 @@
$this->_debug($data);
}
break;
+ case 'ovh-dynhost':
case 'dyndns':
if (preg_match('/notfqdn/i', $data)) {
$status = "phpDynDNS ({$this->_dnsHost}): (Error) Not A FQDN!";
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index e7e2c5a..856d0b3 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -38,8 +38,8 @@
pfSense_MODULE: utils
*/
-define('DYNDNS_PROVIDER_VALUES', 'dnsomatic dyndns dyndns-static dyndns-custom dhs dyns easydns noip noip-free ods zoneedit loopia freedns dnsexit opendns namecheap he-net he-net-v6 he-net-tunnelbroker selfhost route53 cloudflare custom custom-v6 eurodns gratisdns');
-define('DYNDNS_PROVIDER_DESCRIPTIONS', 'DNS-O-Matic,DynDNS (dynamic),DynDNS (static),DynDNS (custom),DHS,DyNS,easyDNS,No-IP,No-IP (free),ODS.org,ZoneEdit,Loopia,freeDNS,DNSexit,OpenDNS,Namecheap,HE.net,HE.net (v6),HE.net Tunnelbroker,SelfHost,Route 53,CloudFlare,Custom,Custom (v6),Euro Dns,GratisDNS');
+define('DYNDNS_PROVIDER_VALUES', 'dnsomatic dyndns dyndns-static dyndns-custom dhs dyns easydns noip noip-free ods zoneedit loopia freedns dnsexit opendns namecheap he-net he-net-v6 he-net-tunnelbroker selfhost route53 cloudflare custom custom-v6 eurodns gratisdns ovh-dynhost');
+define('DYNDNS_PROVIDER_DESCRIPTIONS', 'DNS-O-Matic,DynDNS (dynamic),DynDNS (static),DynDNS (custom),DHS,DyNS,easyDNS,No-IP,No-IP (free),ODS.org,ZoneEdit,Loopia,freeDNS,DNSexit,OpenDNS,Namecheap,HE.net,HE.net (v6),HE.net Tunnelbroker,SelfHost,Route 53,CloudFlare,Custom,Custom (v6),Euro Dns,GratisDNS,OVH DynHOST');
/* implement ipv6 route advertising deamon */
function services_radvd_configure() {
OpenPOWER on IntegriCloud