如果您(作为用户/客户端)认为主机名解析有问题,那么当前的“调试dns”搜索结果不会显示出操作指南。
我能做些什么来缩小这个问题呢?
我的特殊情况:
工具host可以解析名称:
root@mypc# host remotehost.internal-domain.local
remotehost.internal-domain.local has address 10.99.204.11但是工具nslookup不能:
root@mypc# nslookup host remotehost.internal-domain.local
nslookup: couldn't get address for 'remotehost.internal-domain.local': not found我很困惑。
在我的例子中,我在/etc/nsswitch.conf中更改了这一行:
hosts: files mdns4_minimal [NOTFOUND=return] dns到这个
hosts: files dns现在,.local域由DNS解决,而不是由avahi点对点解决.
发布于 2017-03-15 09:32:31
我能做些什么来缩小这个问题呢?
一般情况下:许多命令都带有开关,这些开关增加了详细和/或调试级别,使您能够更容易地排除故障。查看手册页以获得确切的选项,即man host和man nslookup
就DNS问题而言:
/etc/hosts中存在静态条目/etc/nsswitch.conf中的替代主机数据库,当您使用只测试实际DNS名称服务器的工具时,得到的结果与系统解决方案不同。https://serverfault.com/questions/838369
复制相似问题