centos等Linux系统修改DNS为谷歌8.8.8.8或者114.114.114.114命令
sed -i "s#nameserver#\#nameserver#g" /etc/resolv.conf 注释现有DNS
echo "nameserver 8.8.8.8" >> /etc/resolv.conf 主DNS谷歌
echo "nameserver 114.114.114.114" >> /etc/resolv.conf 辅DNS114
当前文章【centos等Linux系统修改DNS为谷歌8.8.8.8或者114.114.114.114命令】由【卡酷云科】编写。
文章URL为https://blog.7ka.co/uncategorized/centosdenglinuxxitongxiugaidnsweiguge8-8-8-8huozhe114-114-114-114mingling.html
未经允许,请勿转载
文章URL为https://blog.7ka.co/uncategorized/centosdenglinuxxitongxiugaidnsweiguge8-8-8-8huozhe114-114-114-114mingling.html
未经允许,请勿转载
THE END
二维码
打赏
文章目录
关闭
共有 0 条评论