Get the App
SLTechnology News&Howtos  ›  Network Security  › 

[CentOS 7.1] ping does not have a domain name

Shulou Source: shulou.com Published: 2022-06-01 07:57:59 10月03日 Update

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!

Tags: Files configurations network cards services domain names addresses servers root causes phenomena networks network services errors analysis control Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information vpn Xiaomi Apple