ISSUE & FIX: Google Domains: ddclient shows IP is good, but the gdomains WebUI shows 0.0.0.0

So, genius me, deleted my www subdomain, figuring — hey, I use forwarding, so no need.  Well, until the application I need to access, relies on www.  Crap.  That’s cool, I’ll just add the Dynamic DNS entry back in, CLI update via ddclient & go.

In theory, that’s correct, however when I updated my ddclient with the new user/pass — it said “… skipped: IP address was already set to <insert IP here>”

Cool, let’s look at the Google UI.  Uh-oh.  It’s 0.0.0.0

So, I call Google Domains (fantastic support, btw) & after a bit of poking around, I get this to put into a browser to kick the DNS update into effect:

https://credentials_user:credentials_pass@domains.google.com/nic/update?hostname=sub.domain.com&myip=my_current_IP

Breakdown in the Google Domains UI:

credentials_user:  ‘username’ in the Dynamic DNS section of the subdomain
credentials_pass:  ‘password’ in the Dynamic DNS section of the subdomain
my_current_ip:  what you see when you go to:  http://www.ip-adress.eu — for an IPV4 address

Once I did that and waited about 2 minutes, a dig of my A record came back correct:

[~]# dig @8.8.8.8 A sub.yourdomain.com

; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3.3 <<>> @8.8.8.8 A sub.yourdomain.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5760
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;sub.yourdomain.com.            IN      A

;; ANSWER SECTION:
sub.yourdomain.com.     59      IN      A       0.0.0.0

;; Query time: 43 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Jun 27 00:25:27 EDT 2017
;; MSG SIZE  rcvd: 63


<wait a few minutes>



[~]# dig @8.8.8.8 A sub.yourdomain.com

; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3.3 <<>> @8.8.8.8 A sub.yourdomain.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5760
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;sub.yourdomain.com.            IN      A

;; ANSWER SECTION:
sub.yourdomain.com.     59      IN      A       My.IP.Is.Good!   <------------------where'd you see the update from 0.0.0.0

;; Query time: 43 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Jun 27 00:25:27 EDT 2017
;; MSG SIZE  rcvd: 63

 

So, if for some reason, you can’t update a subdomain, you can put that in to a web browser & force it to your CURRENTLY KNOWN IP.

Will the ddclient.conf work later?  That’s yet to be seen (give me time!).

When I get a new IP, I’ll update with the results!