If the original dhcp related settings of the system are deleted due to misoperation, the domain name cannot be resolved normally.
At this point, you need to manually modify the configuration file:
/etc/resolv.conf
Manually add the domain name resolution server to the configuration file
This file is a configuration file for DNS domain name resolution. Its format is very simple. Each line starts with a keyword, followed by configuration parameters. There are four main keywords in resolv.conf, namely:
nameserver #Define the IP address of the DNS server
domain #define local domain name
search #Define the search list of domain names
sortlist #Sort the returned domain names
An example of /etc/resolv.conf:
domain ringkee.com
search www.ringkee.com ringkee.com
nameserver 202.96.128.86
nameserver 202.96.128.166
The most important one is the nameserver keyword. If nameserver is not specified, the DNS server will not be found. Other keywords are optional.
You can simply set resolv.conf to name server 202.106.0.20
Problem solved immediately.