linux系统更换DNS
第五主机VPS(vps.5yqs.cn)
香港cn2高防教程
香港高防需要更换高防DNS才能访问网站,win系统在网络里面跟换DNS为“43.250.107.107”
linux系统更换DNS echo -e "options timeout:1 attempts:1 rotatennameserver 43.250.107.107" >/etc/resolv.conf; 查看修改后的DNS配置:cat /etc/resolv.conf
每次重启服务器后,/etc/resolv.conf文件就被自动还原了,最后发现是被Network Manager修改了。
查看Network Manager服务状态
systemctl status NetworkManager
停止Network Manager服务
systemctl stop NetworkManager
关闭Network Manager开机启动
systemctl disable NetworkManager
修改网卡配置
/etc/sysconfig/network-scripts/ifcfg-eth0文件
修改DNS