去掉 /etc/dhcp/dhclient.conf 中的
domain-name, domain-name-servers, domain-search,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
再重启dhclient
pkill -9 dhcleint
dhclient -i eth0
否则会定期设置 /etc/resolv.conf 为
search ap2a.qingcloud.com.
nameserver 100.64.11.3
nameserver 114.114.114.114
nameserver 119.29.29.29
腾讯云金山云华为云内网DNS服务器用于yum、apt-get
http://trustcomputing.com.cn/bbs/viewthread.php?tid=1335
[
本帖最后由 linda 于 2022-1-26 10:49 编辑 ]