WeAir

使用resolvconf配置DNS服务

安装resolvconf

1
apt install resolvconf

配置DNS服务

1
echo -e "nameserver 1.1.1.1\nnameserver 1.0.0.1\n" >> /etc/resolvconf/resolv.conf.d/head

更新DNS服务配置

1
resolvconf -u

查看当前DNS配置

1
resolvectl status