+++ date = 2021-09-27T14:18:47+08:00 title = “Ubuntu/Debian Server 修改DNS” description = "" slug = "" authors = [] externalLink = "" series = [] +++
sudo apt install resolvconf
sudo systemctl enable --now resolvconf.service
令以后,修改 /etc/resolvconf/resolv.conf.d/head 文件的内容,格式如下:
nameserver 1.1.1.1
nameserver 2606:4700:4700::1111