[Pdns-users] Strange CNAME behavoir

Peter N. Hrebicek lists at embit.info
Thu Aug 5 19:47:58 UTC 2004


Hey list.

Today i experienced some strange behavoir with CNAMEs and i hope u can
help me with.

First, i had CNAMEs pointing to destinations outside of my zones. So
this forced me to enable recursion. So far so good.

But now the strange behavoir on it: when i dig for a SOA of the domain,
it returns the SOA of the CNAME of the domain. Is that intended
behavoir? CNAMEs are used for A questions only, aren't they?

This is my current sitation:

example.com      SOA      ns1.hostingco.com hostmaster.hostingco.com [...]
example.com      NS       ns1.hostingco.com
example.com      NS       ns2.hostingco.com
example.com      CNAME    example.org
*.example.com    CNAME    example.org


When i do a 'dig @ns1.hostingco.com example.com' it does not return *my*
SOA record but the SOA record of the CNAME example.com:

$ dig @ns1.hostingco.com example.com

; <<>> DiG 9.2.1 <<>> @ns1.hostingco.com example.com soa
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60385
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;example.com.                      IN      SOA

;; ANSWER SECTION:
example.com.               910     IN      CNAME   example.org.
example.org.               834     IN      SOA
ns2.anotherhostingco.com. hostmaster.anotherhostingco.com. 2004071400
28800 7200 604800 900

;; AUTHORITY SECTION:
EXAMPLE.ORG.               73252   IN      NS
ns1.anotherhostingco.com.
EXAMPLE.ORG.               73252   IN      NS
ns2.anotherhostingco.com.

;; ADDITIONAL SECTION:
ns1.anotherhostingco.com.  45718   IN      A       194.0.0.1
ns2.anotherhostingco.com.  73252   IN      A       194.0.0.2

;; Query time: 57 msec
;; SERVER: 194.1.0.30#53(ns1.hostingco.com)
;; WHEN: Thu Aug  5 21:36:56 2004
;; MSG SIZE  rcvd: 188



Appreciate any answer.

Peter N. Hrebicek





More information about the Pdns-users mailing list