Ubuntu 18.04設置DNS

Ubuntu 18.04設置DNS:ide

vi /etc/systemd/resolved.conf

DNS= 10.0.0.3 10.0.0.4rest

:wqcode

# systemctl restart systemd-resolved
# systemctl enable systemd-resolved

# mv /etc/resolv.conf  /etc/resolv.conf.bak
# ln -s /run/systemd/resolve/resolv.conf /etc/
相關文章
相關標籤/搜索