Specifying alternate DNS servers

This recipe describes how to configure pfSense to use DNS servers other than those provided by your WAN connection.

Getting ready

When it comes to resolving DNS names, most environments will rely on the DNS servers provided by their ISP through their WAN connection. By default, no DNS servers are defined in pfSense and the Allow DNS server list to be overridden by DHCP/PPP on WAN is checked. However, to manually specify alternate DNS servers follow the instructions in the next subsection.

How to do it...

  1. Browse to System | General Setup.
  2. The DNS servers section contains the following settings:
    • Specify the IP address and gateway for each of the existing DNS servers.
    • Uncheck Allow DNS server list to be overridden by DHCP/PPP on WAN.
  3. Save changes.
  4. Apply changes, if necessary.
    How to do it...

How it works...

The DNS servers specified here are the system defaults and will always take priority unless specifically overridden by the following options.

Note

The DNS servers listed here (4.2.2.1 – 4.2.2.4) are public DNS servers that are often very helpful when trying to troubleshoot and diagnose DNS issues.

Using the DNS Forwarder

If the DNS Forwarder is enabled, we can override the DNS servers for individual domains or even override results for individual devices. For more information, see the following Configuring the DNS Forwarder recipe. The DNS Forwarder takes precedence over all DNS requests.

Using your WAN DNS servers

When Allow DNS server list to be overridden by DHCP/PPP on WAN is enabled, pfSense will attempt to resolve DNS names using the DNS servers provided by the WAN before failing over to the servers defined in this list. After the DNS Forwarder, this option takes precedence over DNS requests.

See also

  • The Configuring the DNS Forwarder recipe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.48.82