I'm setting up a bind DNS server.
Recursion is set to off and I have two zones defined:
zone "my_local_private_domain" {
type master;
file "/etc/named/zones/my_local_private_domain";
};
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/named/zones/db.2.168.192";
};
What I want eventually is for this DNS to forward requests for other zones (for example a DNS resolution to www.google.com) to another server on my local network.
But when I set:
forwarders { 192.168.2.my_other_DNS; };
It doesn't resolve:
nslookup www.google.com
Server: 192.168.2.193
Address: 192.168.2.193#53
Non-authoritative answer:
*** Can't find www.google.com: No answer
Is it possible to define a zone that forwards a requests to another DNS?And if so, how?
Thanks,
Best Answer
See example in page 19 of BIND v9.11 documentation: you need to have a
allow-recursion
directive with some ACLs targeted to your internal users.