Linux上面设置DNS

Tags:

参考

https://hostloc.com/thread-823223-1-1.html

技术

vi /etc/systemd/resolved.conf
# 写入
DNS=8.8.8.8
DNS=8.8.4.4
DNS=1.1.1.1
DNS=1.0.0.1
DNS=2001:4860:4860::8888
DNS=2001:4860:4860::8844
DNS=2606:4700:4700::1111
DNS=2606:4700:4700::1001


# 重启dns 服务
systemctl restart systemd-resolved.service

# check
systemd-resolve --status

验证

Leave a Reply