[Debug] 踩过的坑-UbuntuDNS配置
Ubuntu18.04重启之后会出现无法连接网络的问题,排查得问题出现在DNS上,然而中文社区对这个方法的解决都不甚令人满意,折腾了半个晚上,才发现This is pretty simple to fix though.
若已经连不上网了,先修改
/etc/resolv.conf
,添加nameserver 114.114.114.114
或其他,不要restart network之类的,那样会导致文件被覆盖sudo apt install resolvconf
sudo vi /etc/resolvconf/resolve.conf.d/head
# Make edits to /etc/**resolvconf**/**resolv**.**conf**.d/head.
nameserver 8.8.4.4
nameserver 8.8.8.8.
sudo service resolvconf restart