I have some servers with IP public and Private IP and domain exemple.com hosting on external DNS with a lot of entries
server1 IN A IpPublic
server2 IN A IpPublic
server3 IN A IpPublic
server4 IN A IpPublic
...
...
I want to set up an Internal DNS for use the localIP but when the internal DNS cant resolv something then use the externalDNS
server1 IN A PrivateIP
server2 IN A PrivateIP
server3 IN A PrivateIP
I have created a zone
zone "exemple.com" {
type master;
file "/etc/bind/db.exemple.com";
allow-query { any; };
};
and forwarders
forwarders {
8.8.8.8;
8.8.4.4;
};
as my internal DNS is master of exemple.com he didn't forward in any case querries with *.exemple.com to my external DNS .
How I can setup bind9 for forward querries if bind9 didnt find the entry in /etc/bind/db.exemple.com
thanks a lot