BIND和SERVFAIL

我知道这有点超出了本网站的范围,但是我正在尝试设置一个testingDNS服务器,并且绝对拒绝parsing本地域。 我已经尝试了几个教程和职位在各种论坛的意见,没有运气。

每当我尝试使用dig或nslookup时,服务器都会使用一个通用的SERVFAIL进行响应。 有趣的是,反向查找工作得很好。

我相信这是一个简单的问题,但我试图去find它。 任何帮助将不胜感激。

IP: 192.168.93.25

主机名: ns2.tenebris.cs

这里是有问题的文件:

在/etc/resolv.conf

nameserver 127.0.0.1 search ns2.tenebris.cs 

/etc/bind/named.conf.local

 zone "tenebris.cs"{ type master; file "/etc/bind/zones/tenebris.cs.db"; }; zone "93.168.192.in-addr.arpa"{ type master; file "/etc/bind/zones/rev.93.168.192.in-addr.arpa"; }; 

/etc/bind/zones/tenebris.cs.db

 $TTL 86400 ; 1 day tenebris.cs. IN SOA ns2.tenebris.cs. hostmaster.example.com. ( 2008080901 ; serial 8H ; refresh 4H ; retry 4W ; expire 1D ; minimum ) IN NS ns2.tenebris.cs. IN MX hermes.tenebris.cs. IN A 192.168.93.25 localhost IN A 127.0.0.1 ns2 IN A 192.168.93.25 www IN A 192.168.93.250 zeus IN A 192.168.93.253 hermes IN A 192.168.93.250 www IN CNAME tenebris.cs. 

你使用named-checkzone。

 $ named-checkzone tenebris.cs cs.db dns_rdata_fromtext: cs.db:13: near 'hermes.tenebris.cs.': not a valid number dns_master_load: cs.db:22: www.tenebris.cs: CNAME and other data zone tenebris.cs/IN: loading from master file cs.db failed: not a valid number zone tenebris.cs/IN: not loaded due to errors. 

第一个错误告诉你,你的MXlogging指向hermes.tenebris.cs有问题。 MXlogging采用以下格式:

 name ttl class rr pref name 

你错过了前面。 既然你只有一个,你可以将其设置为0到65535之间的任何有效数字。我尝试了10。

下一个错误是与您的CNAME。 CNAME不能与其他logging共存 。 您有www指向Alogging以及CNAME的副本。

删除Alogging,现在你的区域应该工作!