I was wondering if there's any method to configure BIND server to answer queries based on the record's local value and if it's not there, forward the request to the configured recursive server.
test.com is saved in the local BIND DB file as
... x A 184.108.40.206 ...
and on the "public" DNS as
... x A 220.127.116.11 y A 18.104.22.168 ...
If I ask for
x I want to get the answer
22.214.171.124 but if I ask for
y I want my server to respond with
This is the functionality included with
dnsmasq when you add hosts to the
/etc/hosts file but I'd like to know if:
- BIND can do this or...
- ...there's any other DNS server that can do that.