DDNS configuration issue with domains.google.com

Hi all,

I’m having issues trying to configure the DDNS client for Google. This is the output from the log file, edited to remove sensitive data.


003356       : ************ ************** ************** **************
 003356  note : PID '32208' started at 2023-07-23 00:33
 003356       : ddns version  : 2.8.2-25
 003356       : uci configuration:
ddns.Google.check_unit='minutes'
ddns.Google.domain='domain.net'
ddns.Google.enabled='1'
ddns.Google.force_unit='minutes'
ddns.Google.interface='wan'
ddns.Google.ip_network='wan'
ddns.Google.ip_source='network'
ddns.Google.lookup_host='host.domain.net'
ddns.Google.password='***PW***'
ddns.Google.retry_unit='seconds'
ddns.Google.service_name='google.com'
ddns.Google.use_ipv6='0'
ddns.Google.use_syslog='2'
ddns.Google.username='***ID***'
ddns.Google=service
 003356       : verbose mode  : 0 - run normal, NO console output
 003357       : check interval: 600 seconds
 003357       : force interval: 4320 seconds
 003357       : retry interval: 60 seconds
 003357       : retry counter : 0 times
 003357       : 'SIGTERM' was send to old process
 003357  note : PID '2916' terminated by 'SIGTERM' at 2023-07-23 00:33
 003357       : last update: never
 003357       : Detect registered/public IP
 003357       : #> /usr/bin/host -t A host.domain.net  >/var/run/ddns/Google.dat 2>/var/run/ddns/Google.err
 003357       : Registered IP '123.123.123.123' detected
 003357  info : Starting main loop at 2023-07-23 00:33
 003357       : Detect local IP on 'network'
 003357       : Local IP '123.123.123.123' detected on network 'wan'
 003357       : Forced Update - L: '123.123.123.123' == R: '123.123.123.123'
 003357       : Force communication via IP '123.123.123.123'
 003357       : #> /usr/bin/wget --hsts-file=/tmp/.wget-hsts -nv -t 1 -O /var/run/ddns/Google.dat -o /var/run/ddns/Google.err --bind-address=123.123.123.123 --no-proxy 'https://***ID***:***PW***@domains.google.com/nic/update?hostname=domain.net&myip=123.123.123.123'
 003358       : DDNS Provider answered:
badauth
 003358 ERROR : IP update not accepted by DDNS Provider
 003358       : Waiting 600 seconds (Check Interval)

I just can’t see why it’s failing with BADAUTH. The user id and password are copied and pasted directly from the Google Domains page.

I’ll be grateful for any help and advice.
Thank you.

Don't forget google domains got sold last month, I am not sure how long ddns is going to work.

Good point. I’ll cross that bridge when it happens. Google currently say it’s business as usual.

Looking at the log again, it looks like it’s actually passing ‘PW’ instead of the actual password. (The User ID is being passed, I placed ‘ID’ for security). This looks like a bug in Luci.

Try running the DDNS update manually from the console using both wget and curl. That way you can isolate possible OpenWrt/Luci issues.

Let's the relevant config from /etc/config/ddns

Figured it out. I needed to define host.domain.net for the domain entry, which I entered domain.net.

2 Likes