Linux DNS

1, the local DNS resolution; modified / etc / hosts file. / etc / hosts file format: ip domain; such as adding a new resolve to: 223.231.234.33 www.baidu.com
2, NIC configuration file DNS service address; that is, modify the network configuration information. Such as / etc / sysconfig / netword-scripts / ifcfg-eth0 ifcfg-eth0 file for the current network file systems, and some file called ifcfg-em1 and so on. In this document the increase rule, such as: DNS1 = '114.114.114.114'; note to add a semicolon.
3, the system default DNS configuration; modify /etc/resolv.conf file. File format nameserver 114.114.114.114
analytical system priority, the local DNS resolution is greater than the NDS card configuration file parsing, network card configuration files for DNS resolution greater than the default DNS configuration parsing. The 1> 2> 3

Guess you like

Origin blog.csdn.net/tianlong1569/article/details/82856482