[Pdns-users] CNAME confusion?!

Andreas Mimz dnsadmin at kos2.de
Fri Jan 14 16:16:14 UTC 2005


Hello!

I have a problem with CNAMEs und A Records, where sometimes the CNAME is 
preferred over the A Record.
The setup is the following:

kos2.de         SOA    <soa entry ...>
kos2.de         A      <some ip>
kos2.de         MX     <some MX>
home.kos2.de    CNAME  klamath.kos2.de
*.kos2.de       CNAME  kos2.de
klamath.kos2.de A      <some other ip>

When I now query the DNS Server for home.kos2.de it usually returns the 
correct IP address for the klamath.kos2.de. But when working at the 
office I noticed that when i want to connect to home.kos2.de that it 
gets sometimes resolved to kos2.de. using dig under linux shows me that 
home.kos2.de is treated as an CNAME for klamath.kos2.de which is then 
treated as an CNAME for kos2.de! although there is an A Record for the 
subdomain klamath.kos2.de ?!. I can avoid this if I setup another SOA 
record for klamath.kos2.de, but that would mean that I need to have an 
SOA Record for every A record listet?! Does anybody have similar 
problems with powerdns? Or is there a problem with the *.kos2.de CNAME ?!

The Query logging looks like this (i modified the gmysql-select query a 
little bit for testing):
050112 10:45:48     155 Query       select 
content,ttl,prio,type,domain_id,name from records where 
name='klamath.kos2.de' order by type ASC, prio ASC
                   155 Query       select 
content,ttl,prio,type,domain_id,name from records where 
name='klamath.kos2.de' order by type ASC, prio ASC
                   155 Query       select 
content,ttl,prio,type,domain_id,name from records where type='SOA' and 
name='klamath.kos2.de'
                   155 Query       select 
content,ttl,prio,type,domain_id,name from records where type='SOA' and 
name='kos2.de'
                   155 Query       select 
content,ttl,prio,type,domain_id,name from records where name='*.kos2.de' 
order bytype ASC, prio ASC
                   155 Query       select 
content,ttl,prio,type,domain_id,name from records where name='kos2.de' 
order by type ASC, prio ASC



I think it's the same problem like the one I found in the mailing 
archive back from 2003! But there weren't any comments or fixes to the 
email! The link is the following: 
http://mailman.powerdns.com/pipermail/pdns-users/2003-April/000281.html


More information about the Pdns-users mailing list