解决Ubuntu1804域名解析失败问题
仅供个人学习参考
最近用Ubuntu18打靶机时发现remote不上,显示无法解析域名,检查/etc/resolv.conf,发现之前修改的nameserver总是会被修改为127.0.0.53
解决方法:
1 | sudo su |
内容大致如下
1 | [Resolve] |
改成
1 | DNS=8.8.8.8 8.8.4.4 |
然后重启systemd-resolved服务即可
1 | sudo systemctl restart systemd-resolved |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.