Why can I resolve this hostname but not a cname to this hostname?

Posted by Joe Hopfgartner on Server Fault See other posts from Server Fault or by Joe Hopfgartner
Published on 2012-06-18T08:44:01Z Indexed on 2012/06/18 9:17 UTC
Read the original article Hit count: 509

if a run dig against a hostname, i get the according cname, however i get an NXDOMAIN error (non existent domain). if i run dig against the cname i got, I can resolve it to an IP address successfully. It is reproduceable. On the system I am currently on it is always the case, on other systems it sometimes works and sometimes not, and on other systems it seems to work all the time.

If i run using a nameserver i specify (for example googles public nameserver) i can successfully resolve the hostname.

i would just blame the local system, but it seems i am not having the only one problems

the 2nd domain (unrestrict.me) is hosted on amazon route 53 nameservers. the 1st one on another dns server which has proofen to be fully functional and reliable over the years.

i once switchted with the other domain to amazon dns as well, everything seemed to work, also various dns health check tests reported fine, however i recieved a lot of support tickets that dns resolution would not work.

is amazon just "bad" or am i doing something wrong?

i did not tamper with the domain in any way on the local system (in case of caching or making a custom dns view or whatever...)

joe@joe:~$ dig scorpion.premiumize.me

; <<>> DiG 9.8.1-P1 <<>> scorpion.premiumize.me
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 10222
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;scorpion.premiumize.me.        IN  A

;; ANSWER SECTION:
scorpion.premiumize.me. 180 IN  CNAME   alpha.nue.scorpion.unrestrict.me.

;; Query time: 28 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Jun 18 10:28:39 2012
;; MSG SIZE  rcvd: 84

joe@joe:~$ dig alpha.nue.scorpion.unrestrict.me

; <<>> DiG 9.8.1-P1 <<>> alpha.nue.scorpion.unrestrict.me
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25381
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;alpha.nue.scorpion.unrestrict.me. IN   A

;; ANSWER SECTION:
alpha.nue.scorpion.unrestrict.me. 300 IN A  78.46.25.130

;; Query time: 48 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Jun 18 10:28:47 2012
;; MSG SIZE  rcvd: 66

joe@joe:~$ 

© Server Fault or respective owner

Related posts about dns

Related posts about amazon-web-services