Ubuntu20.04安装resolvconf实现重启后自动修改dns

in Archives with 0 comment

安装resolvconf

apt install resolvconf -y

修改/etc/resolvconf/resolv.conf.d/head文件

nano /etc/resolvconf/resolv.conf.d/head

添加nameserver

nameserver 1.1.1.1

Ctrl+X退出保存后,生效

resolvconf -u
Responses