You are not logged in.

#1 2019-06-17 18:58:59

jjb2016
Member
From: Oxfordshire
Registered: 2016-02-29
Posts: 73

BIND DNS configuration help ...

Hi all,

I use BIND 9 DNS server at home for internal DNS (within my LAN).  I have a web application running on a VM, which has an IP address on my main LAN.  From within my LAN, I need to be able to access this web app using a specific URL which must resolve to the IP address of the VM on my LAN, but DNS queries for other URLs for external hosts on the same domain must be forwarded to public DNS server.  For example ...

My web app, running on the VM, must be reached via 3dx.example.com.  I want my internal DNS to resolve that to the LAN address of the VM, but if a device on my LAN queries  any other host on the same domain, www.example.com for example, then I want that query forwarded to external public DNS server.

So my general question is how do I configure BIND DNS server to forward a DNS request to another server if it does not have a matching record itself?  In my /etc/named.conf I already have "allow-recursion" for all address on my LAN, and I have "forwarders" set for 8.8.8.8 & 1.1.1.1.  But this isn't working for me.

Any help would be appreciated.

Thanks,
JB

PS:  I know I could add 3dx.example.com to my hosts file but I would have to do that on all devices and I'd rather configure BIND to do DNS for all devices.

Last edited by jjb2016 (2019-06-17 19:02:00)

Offline

Board footer

Powered by FluxBB