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.
Example
test.com
is saved in the local BIND DB file as
...
x A 1.2.3.4
...
and on the "public" DNS as
...
x A 5.6.7.8
y A 2.0.0.2
...
If I ask for x
I want to get the answer 1.2.3.4
but if I ask for y
I want my server to respond with 2.0.0.2
.
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.