在CentOS上使用绑定的DNS服务器 – 不能parsing

我正在尝试为标准局域网设置一个DNS。 我现在已经阅读了所有可用的信息,但DNS服务器仍然无法使用nslookup解决或挖掘例如“nslookup router.local.lan”=> **服务器无法findrouter.local.lan:NXDOMAIN

named.conf文件:

options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; // Forward any unresolved requests to DNS of ISP allow-recursion { localhost; 192.168.1.0/24; }; forwarders { 217.237.151.51; }; }; zone "local.lan" { type master; file "lan.zone"; notify yes; }; 

lan.zone文件

 $TTL 3600 @ IN SOA romeo0.local.lan. admin.local.lan. ( 2013061001 ; Serial 3H ; refresh after 3 hours 1H ; retry after 1 hour 1W ; expire after 1 week 1D) ; minimum TTL of 1 day @ IN NS romeo0. @ IN A 192.168.1.160 router IN A 192.168.1.1 romeo1 IN A 192.168.1.161 

有人能帮我find我犯的错误吗? 任何帮助深表感谢。

编辑:我find了解决scheme:我resolve.conf中的DNS服务器是错误的我需要删除点yoonix指出

yoonix是正确的,“。” 在这一行上:

 @ IN NS romeo0. 

是不正确的。 另外,你是否有romeo0的Alogging? 我猜,但我想你想要的是:

  IN NS romeo0.local.lan. romeo0 IN A 192.168.1.160 router IN A 192.168.1.1 romeo1 IN A 192.168.1.161 

来自: http : //www.zytrax.com/books/dns/ch8/origin.html

符号@强制replace$ ORIGIN的当前(或合成)值。 @符号被replace为$ ORIGIN的当前值。