[CentOS 7.1] ping does not have a domain name
Phenomenon: 1. Ping cannot access domain names, such as www.qq.com
two。 You can ping ip, such as 61.135.157.156
Analysis: 1. Check the DNS configuration file / etc/resolve.conf. The server address in it is wrong.
two。 Modify the DNS configuration file, restart the network service, and restore to the wrong file
3. The root cause lies in:
3.1) NetworkManager control is enabled for the network card.
3.2) DNS1 is written incorrectly in the configuration file of the network card
Solution: in the configuration file of the network card, write DNS1 correctly!