OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: smajor on February 21, 2016, 12:24:08 am

Title: Help Configuring Split DNS
Post by: smajor on February 21, 2016, 12:24:08 am
I'm looking for some advice on configuring my router's DNS. I run split DNS, I want my internal NAT clients to resolve to an internal NATted DNS server.

My main issue is that I have a web server, among other services, running on NAT and I find that OPNsense cannot resolve to things like URLs on my web-server.  Possibly because of my internal DNS being on a system behind NAT as well.

What would be best practice for this? Under System>Settings>General should I use my internal DNS server or External, or both? Or is there some other setting I need to have a look at?

Thanks all for any tips.
Title: Re: Help Configuring Split DNS
Post by: philamonster on February 22, 2016, 05:07:08 pm
Under Services > DNS Forwarder towards the bottom of the page find the Host Overrides section.

Click on the plus sign to add an override. Enter the hostname & domain for public domain that you are trying to access. In my case I use service.dyndns.org so hostname = service, domain = dyndns.org. Then add local IP of the machine that service is hosted and a description. You can also add different aliases for this host at the bottom of the dialog. Creating these DNS entries will autogenerate firewall rules on the WAN interface for NAT.

Your internal hosts will now use this local DNS config to find your published services using the same URL that internet clients would use.