I want to setup a PowerDNS instance with two levels of resolving :
- a pipe backend
- a fallback to a public recursor like 8.8.8.8
I have correctly set up the pipe backend and I can query it with success.
Now what I want to achieve is when the pipe backend doesn't have the answer, I would like to get an answer from a public recursor like 8.8.8.8
In my pdns.conf file I have
allow-recursion=0.0.0.0/32 # yes, wide open for my tests
lazy-recursion=yes
recursor=8.8.8.8
But if I query for a domain not handled by my pipe backend, I get the following :
$ host -t A www.google.com localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:
www.google.com has no A record
Is there an exit code or other information in the pipe backend to return to tell pdns-server to go recursing ?
Thanks in advance for any help