flyzy博客
分享便宜VPS与网络优惠
搬瓦工

debian dns问题求助

自己手工安装了debian,连接ssh正常,发现无法ping通域名,提示Temporary failure in name resolution,求指点。

interfaces 设置是这样的

iface enp1s0f1 inet static
        address xxx.xxx.xxx.7/31
        gateway xxx.xxx.xx.6
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 1.1.1.1

河北省网友说:先修改/etc/resolv.conf文件(一次性的增加DNS的方法),再进行resolvconf包的安装   sudo apt install resolvconf安装这个包  安装完成后。重启系统,检查 /etc/resolv.conf 文件,DNS修改成功。

广东省网友说:cat > /etc/resolv.conf << EOF
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF

黑龙江省网友说:谢谢,我试试。

赞(0) 打赏
关注我们
未经允许不得转载:flyzy博客 » debian dns问题求助
分享到: 更多 (0)

这是一种鼓励

支付宝扫一扫打赏

微信扫一扫打赏