I had a DNS A record that resolved
* names and IP addresses changed to protect the innocent :P
I recently modified the record to resolve the name to
18.104.22.168. I can confirm that the change was made on my Ubuntu 17.04 desktop with:
$ dig a mydomain.com ... ;; ANSWER SECTION: mydomain.com. 1091 IN A 22.214.171.124
curl doesn't resolve the name to the correct IP address:
$ curl -vvv mydomain.com * Rebuilt URL to: mydomain.com/ * Trying 126.96.36.199... ...
The contents of
$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers. nameserver 10.10.0.1 nameserver 127.0.0.53
10.10.0.1 is the IP address of my router on the local network. It is configured to use the DNS servers
188.8.131.52 (Google's public DNS servers). I used this page to flush the DNS entries for the domain and the page indicated that the procedure was a success.
However, curl continues to resolve to the wrong address - how can I fix this?