id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
124	Ignoring wildcard CNAME ; PowerDNS returning SERVFAIL	anon	somebody	"PowerDNS returns SERVFAIL when you ask it for a resource record that does not exist and a wild card exists that points at the query domain. It also offers up the wild card info. that it does have, which only confuses matters.

The BIND zone file looks like this:

{{{
$TTL 7200
$ORIGIN schwer.us.
@               IN      SOA     ns1.sonic.net.  hostmaster.sonic.net.   (
                2007021205      ;serial
                10800           ;refresh
                3600            ;retry
                1209600         ;expire
                86400 )         ;TTL
                IN      TXT     ""v=spf1 include:mail.sonic.net -all""
                IN      A       208.201.227.139
                IN      NS      a.auth-ns.sonic.net.
                IN      NS      b.auth-ns.sonic.net.
                IN      NS      c.auth-ns.sonic.net.
                IN      MX      10 mailin-01.mx.sonic.net.
                IN      MX      10 mailin-02.mx.sonic.net.
www             IN      CNAME   schwer.us.
test            IN      A       208.201.227.139
*               IN      CNAME   test
}}}

Querying PowerDNS you get:

{{{
[augie@augnix ~]$ dig ns test.schwer.us +norecurse @pdns-lab.sr.sonic.net

; <<>> DiG 9.3.2 <<>> ns test.schwer.us +norecurse @pdns-lab.sr.sonic.net
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 52497
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;test.schwer.us.                        IN      NS

;; ANSWER SECTION:
test.schwer.us.         7200    IN      CNAME   test.schwer.us.

;; AUTHORITY SECTION:
schwer.us.              7200    IN      SOA     ns1.sonic.net. hostmaster.sonic.net. 2007021205 10800 3600 1209600 86400

;; Query time: 6 msec
;; SERVER: 64.142.100.91#53(64.142.100.91)
;; WHEN: Tue Feb 13 16:19:05 2007
;; MSG SIZE  rcvd: 115
}}}

Querying BIND you get:

{{{
[augie@augnix ~]$ dig ns test.schwer.us +norecurse @sonic.sonic.net

; <<>> DiG 9.3.2 <<>> ns test.schwer.us +norecurse @sonic.sonic.net
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1561
;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;test.schwer.us.                        IN      NS

;; AUTHORITY SECTION:
schwer.us.              86400   IN      SOA     ns1.sonic.net. hostmaster.sonic.net. 2007021205 10800 3600 1209600 86400

;; Query time: 1 msec
;; SERVER: 208.201.224.9#53(208.201.224.9)
;; WHEN: Tue Feb 13 16:19:51 2007
;; MSG SIZE  rcvd: 92
}}}"	defect	closed	normal		component1		normal	fixed		augie.schwer@…
