Public DNS
Contents
    加载中
Support Public DNS Public DNS Access Guide

Public DNS Access Guide

Overview

This document describes how to access Public DNS from your computer system.

Directions

This document provides the following three computer system access methods:

Windows 10

  1. Click the network connection icon in the bottom-right corner of the taskbar, and then click Network & Internet settings to open the "Network status" page as shown below:

  1. Click Network and Sharing Center. On the opened "Network and Sharing Center" page, click Ethernet as shown below:

  1. On the opened Ethernet Status page, click Properties as shown below:

  1. In the Network tab, under This connection uses the following items:, double-click Internet Protocol Version 4 (TCP/IPv4) as shown below:

  1. In the General tab, click Use the following DNS server addresses, and then enter 119.29.29.29 in Preferred DNS server as shown below:

  2. Click OK to save the change and exit. At this point, you have connected to Public DNS on Windows 10.

Linux

Note:
Please switch to the root user first. In addition, please ensure that the server can access the public UDP and TCP port 53 normally.
The following takes CentOS 7 as an example.

  1. Run the command vim /etc/nsswitch.conf, modify the following content, save the change, and exit. The following content indicates that the configuration of the /etc/hosts file will be used first before the DNS record is used.
    img

  2. Run the command vim /etc/resolv.conf to configure the preferred nameserver as 119.29.29.29, save the change, and exit. At this point, you have connected to Public DNS on Linux as shown below:

img

Note: if the nscd service is enabled on the server, we recommend you disable it or its domain cache feature to avoid exceptions.
How to disable domain cache: run the command vim /etc/nscd.conf, open the nscd.conf file, and set enable-cache hosts to yes. After making the change, restart the nscd service.

macOS

  1. In the macOS system menu, select System Preferences as shown below:

  1. On the opened "System Preferences" page, click the Network icon as shown below:

  1. Select the network connection service you want to modify or currently in use (such as Wi-Fi or Ethernet) from the list, and then click Advanced as shown below:

  1. Select the "DNS" tab, click + in the bottom-left corner of DNS Server, add 119.29.29.29, and click OK in the bottom-right corner. At this point, you have connected to Public DNS on macOS as shown below:
Last updated on 2020-11-23 07:16