jianyunchao / mindlearning

MindSpore learning from scratch.
0 stars 0 forks source link

【ubuntu】ubuntu系统dns会自动刷新,永久修改reslov.conf,解决无法访问外网 #11

Open jianyunchao opened 11 months ago

jianyunchao commented 11 months ago

修改/etc/resolv.conf后自动刷新,导致无法连接外网 image ll /etc/resolv.conf可以看出它只是个软链接

参考:https://blog.csdn.net/weixin_43640082/article/details/83859885

jianyunchao commented 10 months ago

修改systemd-resolved,将DNS修改为114.114.114.114

vim /etc/systemd/resolved.conf image

重启systemd-resolved

systemctl restart systemd-resolved.service

查看修改是否生效

systemd-resolve --status image