Ubuntu18.04 修改DNS

Ubuntu18.04 修改DNS

sudo vim /etc/systemd/resolved.conf

修改如下:

[Resolve]

DNS=119.29.29.29

保存退出后

systemctl restart systemd-resolved.service
 
posted @ 2018-10-13 22:50  sandea  阅读(3656)  评论(0编辑  收藏