Debian 10 固定DNS
安装 resolvconfapt install resolvconf vi /etc/resolvconf/resolv.conf.d/head在文件中增加nameserver 8.8.8.8nameserver 8.8.4.4重启网络服务,使新 DNS 配置生效systemctl restart networking查看 dns 服务器cat /etc/resolv.conf
安装 resolvconfapt install resolvconf vi /etc/resolvconf/resolv.conf.d/head在文件中增加nameserver 8.8.8.8nameserver 8.8.4.4重启网络服务,使新 DNS 配置生效systemctl restart networking查看 dns 服务器cat /etc/resolv.conf