如果您(作为用户/客户端)认为主机名称parsing出现问题,那么“debug dns”的当前search结果不会显示该如何执行的指导。
我可以采取哪些措施来缩小问题的范围?
我的具体情况是:
工具host可以parsing名称:
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域名可以通过DNSparsing,而不是通过点对点的东西解决。
我可以采取哪些措施来缩小问题的范围?
一般来说:许多命令都带有增加冗长和/或debugging级别的开关,使您可以更轻松地排除故障。 检查手册页的确切选项,即man host和man nslookup
在DNS问题的情况下:
/etc/hosts存在静态条目 /etc/nsswitch.confconfiguration的备用主机数据库,并且当您使用仅testing实际DNS名称服务器的工具时,与您的系统parsing的结果相比,您会得到不同的结果。