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

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
主站蜘蛛池模板: 甘德县| 始兴县| 仙游县| 宣化县| 辽源市| 阿克陶县| 泰州市| 右玉县| 青岛市| 盘山县| 安平县| 越西县| 通城县| 大足县| 仙游县| 寿宁县| 彩票| 龙山县| 阜城县| 定边县| 泰来县| 平湖市| 浦北县| 屯门区| 手游| 佳木斯市| 常德市| 城口县| 万宁市| 乡城县| 象州县| 民和| 昭苏县| 宕昌县| 通道| 山丹县| 叙永县| 清远市| 许昌县| 大余县| 棋牌|