Ticket #125 (closed defect: fixed)
PowerDNS offers wild card info. when it is not queried for.
| Reported by: | anon | Owned by: | somebody |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | auth | Version: | |
| Severity: | major | Keywords: | |
| Cc: | augie.schwer@… |
Description
Along the same lines as #124 if PowerDNS does not have the query record, but does have a wild card for the domain, then it will give NOERROR and the wild card info. that it has.
This gives incorrect answers to clients that may first request a AAAA record which may be cached locally and then used to incorrectly answer a later A record query.
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 www
Querying PowerDNS:
[augie@augnix ~]$ dig aaaa test.schwer.us +norecurse @pdns-lab.sr.sonic.net ; <<>> DiG 9.3.2 <<>> aaaa test.schwer.us +norecurse @pdns-lab.sr.sonic.net ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41356 ;; flags: qr aa; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.schwer.us. IN AAAA ;; ANSWER SECTION: test.schwer.us. 7200 IN CNAME www.schwer.us. www.schwer.us. 7200 IN CNAME schwer.us. ;; AUTHORITY SECTION: schwer.us. 7200 IN SOA ns1.sonic.net. hostmaster.sonic.net. 2007021205 10800 3600 1209600 86400 ;; Query time: 10 msec ;; SERVER: 64.142.100.91#53(64.142.100.91) ;; WHEN: Tue Feb 13 16:37:06 2007 ;; MSG SIZE rcvd: 133
Querying BIND:
[augie@augnix ~]$ dig aaaa test.schwer.us +norecurse @sonic.sonic.net ; <<>> DiG 9.3.2 <<>> aaaa test.schwer.us +norecurse @sonic.sonic.net ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38801 ;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.schwer.us. IN AAAA ;; 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:41:30 2007 ;; MSG SIZE rcvd: 92
AAAA lookup that is cached followed by incorrect response from cache:
[augie@augnix ~]$ dig aaaa test.schwer.us ; <<>> DiG 9.3.2 <<>> aaaa test.schwer.us ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33371 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.schwer.us. IN AAAA ;; ANSWER SECTION: test.schwer.us. 7200 IN CNAME www.schwer.us. www.schwer.us. 7200 IN CNAME schwer.us. ;; AUTHORITY SECTION: schwer.us. 7200 IN SOA ns1.sonic.net. hostmaster.sonic.net. 2007021302 10800 3600 1209600 86400 ;; Query time: 151 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Feb 13 16:53:16 2007 ;; MSG SIZE rcvd: 124
[augie@augnix ~]$ dig a test.schwer.us ; <<>> DiG 9.3.2 <<>> a test.schwer.us ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32017 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.schwer.us. IN A ;; ANSWER SECTION: test.schwer.us. 7196 IN CNAME www.schwer.us. www.schwer.us. 7196 IN CNAME schwer.us. schwer.us. 7200 IN A 208.201.227.139 ;; AUTHORITY SECTION: schwer.us. 7196 IN NS A.AUTH-NS.SONIC.NET. schwer.us. 7196 IN NS B.AUTH-NS.SONIC.NET. schwer.us. 7196 IN NS C.AUTH-NS.SONIC.NET. ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Feb 13 16:53:20 2007 ;; MSG SIZE rcvd: 145
Change History
Note: See
TracTickets for help on using
tickets.