bind9 DNS在服务器上可以看到Ubuntu的名字,但不能在Windows机器上看到?

按照本教程 ,我今天在Ubuntu上安装了一个DNS服务器。 我的意图是设置我的networkingDNS域名parsing在一个单一的区域内的私人局域网(没有什么奇特的我只是想名称parsing)。

我testing了DNS服务器本身的设置,我可以pingconfiguration文件中列出的所有机器。 我还在我的networking上configuration了Windows机器,出于某种原因,它们无法按照DNS服务器本身的名称进行ping操作。

我已经尝试在Windows DNS客户端上运行nslookup,并收到错误提及DNS服务器的地址。

DNS转发工作正常,我没有任何麻烦访问互联网,问题只在于访问专用局域网内的名称。

这是我的configuration文件:


options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. // forwarders { // 0.0.0.0; // }; forwarders { 8.8.8.8; 8.8.8.4; 74.242.0.12; //68.87.76.178; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; }; 

/etc/bind/named.conf.options


 zone "leerdomain.local" { type master; file "/etc/bind/zones/leerdomain.local.db"; notify no; }; zone "2.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/rev.2.168.192.in-addr.arpa"; notify no; }; 

/etc/bind/named.conf.local


抬头:

 $TTL 3D @ IN SOA ns.leerdomain.local. admin.leerdomain.local. ( 2010011001 28800 3600 604800 38400 ); leerdomain.local. IN NS ns.leerdomain.local. ns IN A 192.168.2.9 asus IN A 192.168.2.254 www IN CNAME asus vaio IN A 192.168.2.253 iptouch IN A 192.168.2.252 toshiba IN A 192.168.2.251 gw IN A 192.168.2.1 TXT "Network Gateway" 

/etc/bind/zones/leerdomain.local.db
(validation区域leerdomain.local时,validation罚款与named-checkzone)


反向查找:

 $TTL 3D @ IN SOA ns.leerdomain.local. admin.leerdomain.local. ( 201001101 28800 604800 604800 86400 ) IN NS ns.leerdomain.local. 1 IN PTR gw.leerdomain.local. 254 IN PTR asus.leerdomain.local. 253 IN PTR vaio.leerdomain.local. 252 IN PTR iptouch.leerdomain.local. 251 IN PTR toshiba.leerdomain.local. 

/etc/bind/zones/rev.2.168.192.in-addr.arpa
*(在validation区域leerdomain.local时,不会validationnamed-checkzone 区域leerdomain.local / IN:NS'ns.leerdomain.local'没有地址logging(A或AAAA)zone leerdomain.local / IN :由于错误而未加载。 *


尽pipe未在/ var / log / syslog中validationbind9启动没有错误

我还configuration了一些在我的networking上的Windows机器,具有查找和反向查找configuration文件中指定的静态IP。

IP地址:192.168.2.254子网掩码:255.255.255.0默认网关:192.168.2.1预定义的DNS服务器:192.168.2.9

使用nslookup会产生以下结果:

 C:\Users\leeand00>nslookup ns Server: UnKnown Address: 192.168.2.9 *** UnKnown can't find ns: Non-existent domain C:\Users\leeand00>nslookup gw Server: UnKnown Address: 192.168.2.9 Name: gw. 

此外,尝试通过名称ping也不会在不是DNS服务器的计算机上。

我的名字服务器或Windows Boxes的configuration有什么问题,使我无法使用名称访问其他机器?

更新

DNS服务器地址,按使用顺序:192.168.2.9附加主连接和特定连接的DNS后缀此连接的DNS后缀:leerdomain.local已检查在DNS中注册此连接的地址

我根据Phil Hollenback的build议更新了Windows机器的高级TCP / IP设置(见上),现在我似乎已经在networking上命名了。

我想知道这个问题是如何后缀追加在Windows机器上工作。 为了testing这个,试着在其中一个Windows机器上运行nslookup的全名,例如nslookup ns.leerdomain.local 。 如果这个工作,这意味着你的Windows机器不附加leerdomain.local后缀到您的查询。 你可以检查在tcp/ip properties->advanced的一台Windows机器。

看看ubuntu上的/etc/resolv.conf ,那里的search指令会告诉你机器是如何附加域的。 看一个windows机器上ipconfig /all的输出,特别是检查primary dns suffix的输出。 ipconfig /displaydns也可以给你一些有关如何configuration机器使用DNS的有用信息。