方法:还是手动修改 /etc/resolv.conf
a.修改 /etc/NetworkManager/NetworkManager.conf 文件,在main部分添加 “dns=none” 选项:
[main]
plugins=ifcfg-rh
dns=none
b.NetworkManager重新配置
# systemctl restart NetworkManager.service
c.手工修改 /etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8