Domain IP not resolving correctly -- RESOLVED

I set up a new server yesterday and migrated apps to it from a different server. The old server’s IP address was 167.71.99.130. The new server’s IP address is 157.245.12.14.

Two WordPress domains resolved to the new IP address with absolutely NO problems. However, one app running on a subdomain is NOT resolving correctly. The server name is Winn and I have phpMyAdmin installed on the subdomain winn.uniquelyyourshosting.us.

On the custom DNS page of my MAIB, this subdomain shows the IP as 157.245.12.14.

However, when I did a dig on that domain, it shows the following:
ubuntu@emmons:~$ dig winn.uniquelyyourshosting.us

; <<>> DiG 9.11.3-1ubuntu1.13-Ubuntu <<>> winn.uniquelyyourshosting.us
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33547
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 6ab3db0edb2e1e58e3fc664e5f95b89a24a4c3d375de6660 (good)
;; QUESTION SECTION:
;winn.uniquelyyourshosting.us.  IN      A

;; ANSWER SECTION:
winn.uniquelyyourshosting.us. 603 IN    A       167.71.99.130

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Oct 25 13:40:42 EDT 2020
;; MSG SIZE  rcvd: 101

How do I fix this so the domain resolves correctly? I have already tried deleting the record and then re-adding it with no change.

Will you post the contents of two files please? (PM is ok if you prefer).

/etc/nsd/zones/uniquelyyourshosting.us.txt

and

/home/user-data/custom.yaml

Sent a PM. Thank you for your help.

Thank you @alento for helping me to resolve this. The lesson learned here is to be careful what you CNAME. :laughing:

1 Like