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-07-07 22:10  congyucn  阅读(17516)  评论(0编辑  收藏  举报