I have a local DNS server running Debian and BIND 9.10.3
Currently it is configured with two forwarders 8.8.8.8 and 8.8.4.4 in named.conf.options
I have created a "dk" zone
zone "dk" {
type master;
file "/etc/bind/db.dk";
};
that contains four A records
www.site1 IN A 192.168.2.2
site1 IN A 192.168.2.2
www.site2 IN A 192.168.2.2
site2 IN A 192.168.2.2
When i go and ping google.com, than bind act as expected and use the forwarders, because i dont have an A record for google.com. But when i ping google.dk bind uses the db.dk zone and because i dont have a A record for google.dk the ping request fails
Question How can i setup bind so if i ping google.dk and their is not a local A record for this site, it uses the forwarders?
Reason I would like to use and setup bind for this, because i have a local webserver that hosts something.dk, and when i need to access this site i would like to avoid asking (for example) 8.8.8.8 "what is something.dk's ip address" when i have it running locally.
/etc/hosts
file. – Michael Hampton Mar 14 '18 at 19:07