修改系统dns

echo > /etc/resolv.conf <<< EOF
nameserver address # 需要使用的dns ip,将此处的address替换为对应解锁的dns ip
nameserver 8.8.8.8 # 备用dns系统,谷歌dns
nameserver 114.114.114.114 # 备用dns系统,国内dns
EOF
最后修改:2025 年 01 月 18 日
如果觉得我的文章对你有用,请随意赞赏
版权声明 博客名称: lsy的小站
本文链接: https://lsy22.com/203.html
内容来源: 部分内容可能来源于公共网络,仅供学习交流,如有侵权,请联系博主进行核实删除。
转载说明: 请勿用于商业用途,转载请注明出处!