PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.73k stars 915 forks source link

auth: master: misleading axfr error message when disable-axfr is enabled #1290

Closed terrorobe closed 7 years ago

terrorobe commented 10 years ago

When running a master with disable-axfr you get the following messages:

master: AXFR of domain 'slave.test' failed: not authoritative

slave: Unable to AXFR zone 'slave.test' from remote '62.178.148.62' (resolver): AXFR chunk with a non-zero rcode 9

Code: https://github.com/PowerDNS/pdns/blob/20010d040efcd3d578c16af4681a30b2c749d665/pdns/tcpreceiver.cc#L554

terrorobe commented 10 years ago

This makes things a bit more readable on the slave, but on the master I'd still like to see the !canDoAXFR(q) split away from the SOA check and read something like "...not authorized to send to..."

Habbie commented 10 years ago

reopened

pieterlexis commented 7 years ago

Fixed in 8090f5a2e8