This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12537|Reply: 0

[linux] Linux sets up DNS servers

[Copy link]
Posted on 12/14/2016 9:31:16 AM | | |
To set up the DNS server, you need to modify the /etc/resolv.conf file. Here is an example of a resolv.conf file.


[root@CentOS~]# cat /etc/resolv.conf

nameserver 192.168.3.1

nameserver 192.168.3.2

options rotate

options timeout:1 attempts:2

192.168.3.1 is the first name server, 192.168.3.2 is the second name server, option rotate refers to polling between these two DNS servers, option timeout:1 means the resolution timeout time is 1s (default is 5 seconds), and attempts represents the number of attempts to resolve the domain name. If you need to add a DNS server, you can directly modify this file.

My DNS settings are as follows:







Previous:C# Capture Xiamen Airlines flight ticket data
Next:What is npm? What is npm?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com