3

I have an PDNS recursor and authoritative servers setup as picture below suggests (DNS1). I have tried to setup a second DNS server in the same way the first is setup, but I am not getting any records on DNS2 from DNS1 (all I am getting is a "ignoring non-query opcode 4 from " in the DNS2 recursor log. dns setup

This is how my recursor.conf looks on DNS1

#recursor.conf

forward-zones-file=/etc/powerdns/forward.conf
forward-zones-recurse=.=<some ips>

local-port=53
local-address=<some ip>

This is how my pdns.conf looks on DNS1

#pdns.conf
default-soa-name=ns1.example.cz
allow-axfr-ips=<some ip>
daemon=yes
disable-axfr=no
local-address=127.0.0.1
local-port=53
master=yes
slave=no

launch=gmysql
gmysql-host=127.0.0.1
gmysql-user=<powerdns_user>
gmysql-dbname=<powerdns_db>
gmysql-password=<powerdns_pass>
gmysql-dnssec=no

#gentoo specific - no ipv6 support
query-local-address6=

My question is - is AXFR transfer even possible under these conditions? (eg. does recursor block the record transfer?)

edit: I keep confusing "recursor"(correct) and "precursor"(wrong). sorry!

edit2: Based on Habbie's suggestion, would this make more sense?

dnsdist used for forwarding

  • 1
    Perhaps this can shed some light : mailman.powerdns.com/pipermail/pdns-users/2007-October/… – schaiba Aug 19 '16 at 8:17
  • That would suggest, that it isn't possible. The opcode 4 would have to be handed forward to powerdns authoritative behind the recursor, which it isn't - same as in my case. Can I therefore safely claim that this will not work? – GoodDog Aug 19 '16 at 8:22
1

First of all, you should be aware that you cannot delegate domains to your recursors in this setup, even apart from the AXFR issue. If you intend to delegate domains, you will have to change your setup anyway.

The good news is that either way, dnsdist can fix your problems. Stick it in front, put auth and recursor both in the back, and use the functionality described at https://dnsdist.org/advanced/axfr.html to get the AXFRs to the auth server.

  • Thank you Habbie - I knew I must have been doing something terribly wrong. Just to make sure, You suggest using the dnsdist to forward (spit) queries according to zone (see the 2nd. picture above)...? – GoodDog Aug 22 '16 at 14:24
  • Yes, that makes sense. Alternatively you can do it based on the RD bit. – Habbie Aug 22 '16 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.