2

I have some questions about setting up Active Domain with pfSense. I'm pretty new to this and I haven't found any posts specifically dealing with these questions, and I've been scouring for hours.

Here's a simple diagram of my setup:

client machines <--> ADDC/DNS/DHCP server for internal DNS <--> forwarded to pfSense for external DNS (resolver) and splitting traffic to VPN / non-VPN based on internal network IP <--> internet

Windows Server 2016 core, an Active Directory Domain controller, is the DNS server for the local network and issues DHCP leases.

I have Windows' DNS set up to forward DNS requests to my pfSense firewall if it cannot resolve a name (e.g. external DNS), which has DNS resolver service running.

pfSense was already set up to direct traffic from certain IPs to either the internet with or without a VPN before I set up the ADDC/DNS/DHCP box. The VPN is connected through pfSense using OpenVPN and there are different external recursive DNS servers for each (I'm using PIA and Google DNS, respectively).

After I set up the Windows ADDC/DNS/DHCP server, the only thing I've changed in pfSense is turning off DHCP server.

So far it all seems to be working good, but being new to using Windows Server for networking, I was hoping some people could help me out with analyzing this setup. Here's my specific questions:

1) Is this how I'm supposed to set this stuff up? Is there anything wrong with how it's done, or is there a better over-all way to do it?

2) The ADDC/Internal DNS only points to itself for DNS entries (e.g. 127.0.0.1). Is this proper?

I saw some articles on Technet saying it's best to have another DNS to point to - I don't have any other DNS on my network (unless you count the pfSense Resolver). I kind of assumed this was some reference to failover or shared workload (e.g. 80/20 rule) but I'm really not sure.

3) Internal network is removed from pfSense - pfSense basically deals with anything external and nothing else. But it is filling quite a few roles still. Is this a good way to have things set up, or are there benefits to using Windows to point to external DNS, as well?

Would it be beneficial to set up a DNS cache using Bind or Windows, and use pfSense only as a firewall?

1 Answer 1

0

If you only have one DC then, yes, leave it pointing to itself as the primary DNS - this is Microsoft recommended practice.

Ideally, though, for the "external DNS" you should configure forwarders as mentioned in this ServerFault.com question (which is very similar to your question): https://serverfault.com/questions/601003/how-to-have-your-dns-servers-forward-queries-for-internet-names

Edit the properties of your DNS server > Forwarders tab > enter the ip address(es) of your ISP/external DNS servers. You can use root hints if you prefer, or if the forwarders are not available. You should also confirm that the Advanced tab > Disable recursion box is unchecked.

If you want to use root hints:

If the DNS Server Root Hints tab is not populated, you can re-enter them from the file: %systemroot%\system32\dns\cache.dns. To have your DNS server recursively resolve queries, your DNS server cannot host a root (. dot) zone.

3
  • The pfSense firewall is set up to point to external DNS - Google and PIA depending on whether the traffic is routed straight to the ISP or through the VPN. I am not sure of a way to do this through Windows which is why I left it as-is and forwarded to the pfSense DNS resolver ... is pointing to an external DNS advantageous enough to give up this functionality? Sorry if my original question is convoluted. Commented Jul 18, 2017 at 7:36
  • Your Windows clients will be given their DNS settings by the DC DHCP so the clients will initially point to the DC for DNS and it then forwards the request (if it can't fulfil it immediately) to your pfSense which then forwards it off to your ISP/down your VPN etc. etc.
    – Kinnectus
    Commented Jul 18, 2017 at 8:03
  • Good, I'm glad that part is working OK ... I couldn't think of any better way to do it, but I appreciate the feedback. Commented Jul 19, 2017 at 1:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .