diff --git a/README.md b/README.md index 2809018..6bbb3f2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ on many dynamic DNS services. Dynamic DNS services currently supported include: DynDNS.com - See http://www.dyndns.com for details on obtaining a free account. - Hammernode - See http://www.hn.org for details on obtaining a free account. Zoneedit - See http://www.zoneedit.com for details. EasyDNS - See http://www.easydns.com for details. NameCheap - See http://www.namecheap.com for details diff --git a/ddclient.conf.in b/ddclient.conf.in index d0ede76..c9609b3 100644 --- a/ddclient.conf.in +++ b/ddclient.conf.in @@ -117,15 +117,6 @@ ssl=yes # use ssl-support. Works with # password=your-easydns-password \ # your.any.domain,your-2nd.any.domain -## -## Hammernode (hn.org) dynamic addresses -## -# server=dup.hn.org, \ -# protocol=hammernode1, \ -# login=your-hn-login, \ -# password=your-hn-password \ -# your-hn-host.hn.org,your-2nd-hn-host.hn.org - ## ## dslreports.com dynamic-host monitoring ## diff --git a/ddclient.in b/ddclient.in index 61a8c44..0146d47 100755 --- a/ddclient.in +++ b/ddclient.in @@ -577,16 +577,6 @@ my %services = ( 'server' => setv(T_FQDNP, 1, 0, 'domains.google.com', undef), }, }, - 'hammernode1' => { - 'updateable' => undef, - 'update' => \&nic_hammernode1_update, - 'examples' => \&nic_hammernode1_examples, - 'variables' => { - %{$variables{'service-common-defaults'}}, - 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), - 'server' => setv(T_FQDNP, 1, 0, 'dup.hn.org', undef), - }, - }, 'namecheap' => { 'updateable' => undef, 'update' => \&nic_namecheap_update, @@ -2414,15 +2404,15 @@ Host definitions look like: [name=value [,name=value]*]* a.host.domain [,b.host.domain] [login] [password] For example: - protocol=hammernode1, \\ - login=my-hn-login, password=my-hn-password myhost.hn.org - login=my-login, password=my-password myhost.dyndns.org,my2nd.dyndns.org + protocol=noip, \\ + login=your-username, password=your-password myhost.noip.com + login=your-username, password=your-password myhost.noip.com,myhost2.noip.com specifies two host definitions. -The first definition will use the hammernode1 protocol, -my-hn-login and my-hn-password to update the ip-address of -myhost.hn.org and my2ndhost.hn.org. +The first definition will use the noip protocol, +your-username and your-password to update the ip-address of +myhost.noip.com and my2ndhost.noip.com. The second host definition will use the current default protocol ('dyndns2'), my-login and my-password to update the ip-address of @@ -3073,81 +3063,7 @@ sub nic_dslreports1_update { } } } -###################################################################### -## nic_hammernode1_examples -###################################################################### -sub nic_hammernode1_examples { - return <<"EoEXAMPLE"; -o 'hammernode1' -The 'hammernode1' protocol is the protocol used by the free dynamic -DNS service offered by Hammernode at www.hn.org - -Configuration variables applicable to the 'hammernode1' protocol are: - protocol=hammernode1 ## - server=fqdn.of.service ## defaults to members.dyndns.org - login=service-login ## login name and password registered with the service - password=service-password ## - fully.qualified.host ## the host registered with the service. - -Example ${program}.conf file entries: - ## single host update - protocol=hammernode1, \\ - login=my-hn.org-login, \\ - password=my-hn.org-password \\ - myhost.hn.org - - ## multiple host update - protocol=hammernode1, \\ - login=my-hn.org-login, \\ - password=my-hn.org-password, \\ - myhost.hn.org,my2ndhost.hn.org -EoEXAMPLE -} -###################################################################### -## nic_hammernode1_update -###################################################################### -sub nic_hammernode1_update { - debug("\nnic_hammernode1_update -------------------"); - - ## update each configured host - foreach my $h (@_) { - my $ip = delete $config{$h}{'wantip'}; - info("setting IP address to %s for %s", $ip, $h); - verbose("UPDATE:", "updating %s", $h); - - my $url; - $url = "http://$config{$h}{'server'}/vanity/update"; - $url .= "?ver=1"; - $url .= "&ip="; - $url .= $ip if $ip; - - my $reply = geturl({ - proxy => opt('proxy'), - url => $url, - login => $config{$h}{'login'}, - password => $config{$h}{'password'}, - }) // ''; - if (!$reply) { - failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'}); - last; - } - last if !header_ok($h, $reply); - - my @reply = split /\n/, $reply; - if (grep //i, @reply) { - $config{$h}{'ip'} = $ip; - $config{$h}{'mtime'} = $now; - $config{$h}{'status'} = 'good'; - success("updating %s: good: IP address set to %s", $h, $ip); - } else { - $config{$h}{'status'} = 'failed'; - warning("SENT: %s", $url) unless opt('verbose'); - warning("REPLIED: %s", $reply); - failed("updating %s: Invalid reply.", $h); - } - } -} ###################################################################### ## nic_zoneedit1_examples ######################################################################