当前位置: 技术问答>linux和unix
安装配置dns后 启动错误 急
来源: 互联网 发布时间:2016-09-16
本文导语: named配置错误:: zone localdomain/IN: loaded serial 42 zone localhost/IN: loaded serial 42 zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700 zone 255.in-...
named配置错误::
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone test.com/IN: has no NS records
localhost_resolver/test.com/IN: bad zone
zone 0.168.192.in-addr.arpa/IN: loaded serial 1997022700
[失败]
其中 test.com.zone这个文件是这样的
$TTL 86400
@ IN SOA localhost root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimu
IN NS dns
IN MX 5 mail
dns IN A 192.168.0.102
www IN A 192.168.0.102
mail IN A 192.168.0.102
blog CNAME www
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone test.com/IN: has no NS records
localhost_resolver/test.com/IN: bad zone
zone 0.168.192.in-addr.arpa/IN: loaded serial 1997022700
[失败]
其中 test.com.zone这个文件是这样的
$TTL 86400
@ IN SOA localhost root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimu
IN NS dns
IN MX 5 mail
dns IN A 192.168.0.102
www IN A 192.168.0.102
mail IN A 192.168.0.102
blog CNAME www
|
$TTL 86400
@ IN SOA localhost root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimu
IN NS dns
IN MX 5 mail
dns IN A 192.168.0.102
www IN A 192.168.0.102
mail IN A 192.168.0.102
blog CNAME www
------------------------
$TTL 86400
@ IN SOA ns.test.com. root.localhost (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimu
IN NS ns.test.com.
IN MX 5 mail
www IN A 192.168.0.102
mail IN A 192.168.0.102
blog CNAME www
@ IN SOA localhost root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimu
IN NS dns
IN MX 5 mail
dns IN A 192.168.0.102
www IN A 192.168.0.102
mail IN A 192.168.0.102
blog CNAME www
------------------------
$TTL 86400
@ IN SOA ns.test.com. root.localhost (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimu
IN NS ns.test.com.
IN MX 5 mail
www IN A 192.168.0.102
mail IN A 192.168.0.102
blog CNAME www