All domain names cannot be resolved normally.
- Ping domain names such as www.baidu.com prompts Temporary failure in name resolution error.
root@localhost:~# ping www.baidu.com
ping: www.baidu.com: Temporary failure in name resolution
root@localhost:~#
一、ubuntu/debian(emporary failure in name resolution)
1. Modify the /etc/resolv.conf configuration file
sudo vim /etc/resolv.conf
Add the following: nameserver 8.8.8.8
Then try again, the access is normal
root@localhost:~# ping www.baidu.com
PING www.a.shifen.com (39.156.66.18) 56(84) bytes of data.
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=1 ttl=52 time=21.9 ms
64 bytes from 39.156.6