官术网_书友最值得收藏!

  • pfSense 2 Cookbook
  • Matt Williamson
  • 294字
  • 2021-04-09 21:16:42

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 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
主站蜘蛛池模板: 泰安市| 文水县| 项城市| 盐津县| 北海市| 崇明县| 临洮县| 喜德县| 浮梁县| 天长市| 白城市| 昌黎县| 鱼台县| 黎城县| 吴忠市| 祥云县| 鄂尔多斯市| 广河县| 封开县| 阿克苏市| 芦溪县| 资阳市| 嫩江县| 璧山县| 新晃| 新巴尔虎右旗| 马山县| 宁河县| 青田县| 郎溪县| 晴隆县| 昭觉县| 那曲县| 凭祥市| 丰都县| 全南县| 芦溪县| 鱼台县| 大余县| 无棣县| 泉州市|