MyDNS backend response to an ANY query lacks SOA RR #439

Closed
Habbie opened this Issue Apr 26, 2013 · 2 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

Hi,

It seems that the MyDNS backend of PowerDNS 3.0.1 answers without SOA RR to ANY queries:

remi ~  $ drill soa example.com
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 62834
;; flags: qr aa rd ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 
;; QUESTION SECTION:
;; example.com.  IN      SOA

;; ANSWER SECTION:
example.com.     86400   IN      SOA     ns0.example.com. postmaster.example.com. 2008030301 21600 3600 604800 600

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 0 msec

remi ~  $ drill any example.com
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 8644
;; flags: qr aa rd ; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 4 
;; QUESTION SECTION:
;; example.com.  IN      ANY

;; ANSWER SECTION:
example.com.     600     IN      A       10.0.0.1
example.com.     7200    IN      NS      ns0.example.com.
example.com.     7200    IN      NS      ns1.example.com.
example.com.     600     IN      MX      10 mx0.example.com.
example.com.     600     IN      MX      10 mx1.example.com.

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:
ns1.example.com.        600     IN      A       10.0.0.1
ns0.example.com.        600     IN      A       10.0.0.1
mx1.example.com.        3600    IN      A       10.0.0.1
mx0.example.com.        3600    IN      A       10.0.0.1

;; Query time: 0 msec

I think that it's due to the fact that MyDNS schema stores SOA in a separate table and does not have SOA entries in the RR table.

An ugly kludge could be done by union selecting the SOA table in the lookup method. I think the clean way would probably be to use getSOA() and serializeSOAData(), but I am not familiar with the PDNS code :)

Regards,

Remi Gacogne

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
Hello,

please let us know whether Habbie/powerdns#25 (https://github.com/Habbie/powerdns/pull/25.diff) fixes this for you.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
Merged in 2751, looked like a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment