CC: | "prov [...] strato-rz.de" <prov [...] strato-rz.de> |
Subject: | 1 record response series |
Date: | Thu, 19 Jul 2018 14:27:17 +0000 |
To: | "bug-Net-DNS [...] rt.cpan.org" <bug-Net-DNS [...] rt.cpan.org> |
From: | "Green, Michael" <green [...] strato.de> |
Hello,
I am currently working with Net::DNS and have noticed some unexpected (for me) behaviour from an AXFR request when using PowerDNS.
When I make a request to PowerDNS, Net::DNS reports only one SOA resource record back. I've had a look at what it's doing and it seems that PowerDNS is returning responding with the AXFR grouped into 3 response series (in my example). The first and the last only contain the SOA record and the middle series contains the bulk of the resource records.
The Net::DNS::Resolver is interpreting this first response with only a SOA record as an end of response so failing to process the rest of it.
A quick scan of what looks to be a relevant RFC says:
An AXFR response that is transferring the zone's contents will
consist of a series (which could be a series of length 1) of DNS
messages. In such a series, the first message MUST begin with the
SOA resource record of the zone, and the last message MUST conclude
with the same SOA resource record.
https://tools.ietf.org/html/rfc5936#section-2.2
That suggests to me that PowerDNS is making a valid response. If you think otherwise please let me know.
I've included a patch to try and fix the issue, if you want it.
Best regards,
Michael Green
Message body is not shown because sender requested not to inline it.