我在网络管理器中为我的连接配置了2个DNS (仅选择DHCP地址)。
如果与nslookup一起使用,DNS运行良好。
/run/resolvconf/
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search domain.tld #edited在127.0.1.1上运行什么dns?
如果我运行nslookup thehost,它将无法工作。但是,如果我运行nslookup thehost 192.168.1.4 (在网络管理器中配置的dns ),它就能工作。
因此,我想知道哪个DNS正在进行nslookup,以及之后发生了什么。我想它将达到127.0.1.1,但是我不知道这个是哪一个(dnsmasq似乎没有安装)以及它在做什么。
发布于 2015-05-18 14:44:47
网络管理器使用dnsmasq作为非缓存本地dns服务器来进行解析。它应该将DNS请求转发到您在网络管理器配置中指定的DNS。
在/etc/resolv.conf中看到127.0.1.1是正常的。
它不能工作,因为您错过了dnsmasq,它是网络管理器的依赖。
在终点站运行:
sudo apt-get -f install它应该纠正您破碎的依赖,并安装丢失的dnsmasq包。
如果不自己安装,则使用
sudo apt-get install dnsmasq-basehttps://askubuntu.com/questions/625255
复制相似问题