googledomains: Remove support for defunct service

This commit is contained in:
Richard Hansen 2024-07-22 22:57:18 -04:00
parent ddfa8663ad
commit 9996c1b7d4
4 changed files with 3 additions and 95 deletions

View file

@ -12,13 +12,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
* Unencrypted (plain) HTTP is now used instead of encrypted (TLS) HTTP if the * Unencrypted (plain) HTTP is now used instead of encrypted (TLS) HTTP if the
URL uses `http://` instead of `https://`, even if the `--ssl` option is URL uses `http://` instead of `https://`, even if the `--ssl` option is
enabled. [#608](https://github.com/ddclient/ddclient/pull/608) enabled. [#608](https://github.com/ddclient/ddclient/pull/608)
* The `googledomains` built-in web IP discovery service
(`--webv4=googledomains`, `--webv6=googledomains`, and
`--web=googledomains`) is deprecated due to the service shutting down. It
will be removed in a future version of ddclient.
[5b104ad1](https://github.com/ddclient/ddclient/commit/5b104ad116c023c3760129cab6e141f04f72b406)
* The default web service for `--webv4` and `--webv6` has changed from Google * The default web service for `--webv4` and `--webv6` has changed from Google
Domains (which is shutting down) to ipify. Domains (which has shut down) to ipify.
[5b104ad1](https://github.com/ddclient/ddclient/commit/5b104ad116c023c3760129cab6e141f04f72b406) [5b104ad1](https://github.com/ddclient/ddclient/commit/5b104ad116c023c3760129cab6e141f04f72b406)
* All log messages are now written to STDERR, not a mix of STDOUT and STDERR. * All log messages are now written to STDERR, not a mix of STDOUT and STDERR.
[#676](https://github.com/ddclient/ddclient/pull/676) [#676](https://github.com/ddclient/ddclient/pull/676)
@ -48,6 +43,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
[#713](https://github.com/ddclient/ddclient/pull/713) [#713](https://github.com/ddclient/ddclient/pull/713)
* `woima`: The dyn.woima.fi service appears to be defunct so support was * `woima`: The dyn.woima.fi service appears to be defunct so support was
removed. [#716](https://github.com/ddclient/ddclient/pull/716) removed. [#716](https://github.com/ddclient/ddclient/pull/716)
* `googledomains`: Support was removed because the service shut down.
[#716](https://github.com/ddclient/ddclient/pull/716)
### New features ### New features

View file

@ -34,7 +34,6 @@ Dynamic DNS services currently supported include:
* [Freemyip](https://freemyip.com) * [Freemyip](https://freemyip.com)
* [Gandi](https://gandi.net) * [Gandi](https://gandi.net)
* [GoDaddy](https://www.godaddy.com) * [GoDaddy](https://www.godaddy.com)
* [Google](https://domains.google)
* [Hurricane Electric](https://dns.he.net) * [Hurricane Electric](https://dns.he.net)
* [Infomaniak](https://faq.infomaniak.com/2376) * [Infomaniak](https://faq.infomaniak.com/2376)
* [INWX](https://www.inwx.com/) * [INWX](https://www.inwx.com/)

View file

@ -197,14 +197,6 @@ pid=@runstatedir@/ddclient.pid # record PID in file.
# zone=example.com, \ # zone=example.com, \
# myhost.example.com,nexthost.example.com # myhost.example.com,nexthost.example.com
##
## Google Domains (www.google.com/domains)
##
# protocol=googledomains,
# login=my-auto-generated-username,
# password=my-auto-generated-password
# my.domain.tld, otherhost.domain.tld
## ##
## Hurricane Electric (dns.he.net) ## Hurricane Electric (dns.he.net)
## ##

View file

@ -193,10 +193,6 @@ sub T_POSTS { 'postscript' }
our %builtinweb = ( our %builtinweb = (
'dyndns' => {'url' => 'http://checkip.dyndns.org/', 'skip' => 'Current IP Address:'}, 'dyndns' => {'url' => 'http://checkip.dyndns.org/', 'skip' => 'Current IP Address:'},
'freedns' => {'url' => 'https://freedns.afraid.org/dynamic/check.php'}, 'freedns' => {'url' => 'https://freedns.afraid.org/dynamic/check.php'},
'googledomains' => {
url => 'https://domains.google.com/checkip',
deprecated => 'See https://github.com/ddclient/ddclient/issues/622 for more info.',
},
'he' => { 'he' => {
url => 'https://checkip.dns.he.net/', url => 'https://checkip.dns.he.net/',
deprecated => "Use 'he.net' instead.", deprecated => "Use 'he.net' instead.",
@ -922,16 +918,6 @@ our %protocols = (
'zone' => setv(T_FQDN, 1, 0, undef, undef), 'zone' => setv(T_FQDN, 1, 0, undef, undef),
}, },
}, },
'googledomains' => {
'force_update' => undef,
'update' => \&nic_googledomains_update,
'examples' => \&nic_googledomains_examples,
'variables' => {
%{$variables{'protocol-common-defaults'}},
'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0),
'server' => setv(T_FQDNP, 0, 0, 'domains.google.com', undef),
},
},
'he.net' => { 'he.net' => {
'updateable' => undef, 'updateable' => undef,
'update' => \&nic_henet_update, 'update' => \&nic_henet_update,
@ -5736,72 +5722,6 @@ sub nic_godaddy_update {
} }
} }
######################################################################
## nic_googledomains_examples
##
## written by Nelson Araujo
##
######################################################################
sub nic_googledomains_examples {
return <<"EoEXAMPLE";
o 'googledomains'
The 'googledomains' protocol is used by DNS service offered by www.google.com/domains.
Configuration variables applicable to the 'googledomains' protocol are:
protocol=googledomains ##
login=service-login ## the user name provided by the admin interface
password=service-password ## the password provided by the admin interface
fully.qualified.host ## the host registered with the service.
Example ${program}.conf file entries:
## single host update
protocol=googledomains, \\
login=my-generated-user-name, \\
password=my-genereated-password \\
myhost.com
## multiple host update to the custom DNS service
protocol=googledomains, \\
login=my-generated-user-name, \\
password=my-genereated-password \\
my-toplevel-domain.com,my-other-domain.com
EoEXAMPLE
}
######################################################################
## nic_googledomains_update
######################################################################
sub nic_googledomains_update {
debug("\nnic_googledomains_update -------------------");
for my $host (@_) {
my $ip = delete $config{$host}{'wantip'};
info("setting IP address to %s for %s", $ip, $host);
verbose("UPDATE:", "updating %s", $host);
my $url = "https://$config{$host}{'server'}/nic/update";
$url .= "?hostname=$host";
$url .= "&myip=";
$url .= $ip if $ip;
my $reply = geturl(
proxy => opt('proxy'),
url => $url,
login => $config{$host}{'login'},
password => $config{$host}{'password'},
);
unless ($reply) {
failed("updating %s: Could not connect to %s.", $host, $config{$host}{'server'});
next;
}
next if !header_ok($host, $reply);
$config{$host}{'ip'} = $ip;
$config{$host}{'mtime'} = $now;
$config{$host}{'status'} = 'good';
}
}
###################################################################### ######################################################################
## nic_henet_examples ## nic_henet_examples
## ##