Linux can not resolve the domain name solution

  
                  If the original dhcp related settings of the system are deleted due to a 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 DNS domain name resolution configuration file. Its format is very simple. Each line starts with a keyword. Connect configuration parameters. There are four main keywords in resolv.conf, namely: nameserver #definition DNS server IP address domain #definition local domain name search #definition domain name search list sortlist #sort the returned domain name /etc/resolv.conf Example: domain ringkee.com search www.ringkee.com ringkee.com nameserver 202.96.128.86 nameserver 202.96.128.166 The most important nameserver keyword, if you do not specify nameserver, you can not find the DNS server, other keywords are optional. You can simply set resolv.conf to name server 202.106.0.20 and solve it immediately.
Copyright © Windows knowledge All Rights Reserved