12 12
发新话题
打印

Linux9+BIND9.2.2下DNS启动错误log????????????

Linux9+BIND9.2.2下DNS启动错误log????????????

Sep 24 15:09:56 localhost named[13845]: starting BIND 9.2.2-P3 -u named -t /var/named/chroot
Sep 24 15:09:56 localhost named[13845]: using 1 CPU
Sep 24 15:09:56 localhost named[13845]: loading configuration from '/etc/named.conf'
Sep 25 03:09:56 localhost named: named startup succeeded
Sep 24 15:09:56 localhost named[13845]: no IPv6 interfaces found
Sep 24 15:09:56 localhost named[13845]: listening on IPv4 interface lo, 127.0.0.1#53
Sep 24 15:09:56 localhost named[13845]: listening on IPv4 interface eth1, 172.16.0.236#53
Sep 24 15:09:56 localhost named[13845]: command channel listening on 127.0.0.1#953
Sep 24 15:09:56 localhost named[13845]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022708
Sep 24 15:09:56 localhost named[13845]: dns_master_load: test.com:10: unknown RR type 'localhost'
Sep 24 15:09:56 localhost named[13845]: zone test199.com/IN: loading master file test.com: unknown class/type
Sep 24 15:09:56 localhost named[13845]: zone localhost/IN: loaded serial 64
Sep 24 15:09:56 localhost named[13845]: running

**********************************************************
[root@localhost root]# nslookup www.test199.com
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         172.16.0.236
Address:        172.16.0.236#53

** server can't find www.test199.com: SERVFAIL
**************************************************************
/etc/named.conf
// generated by named-bootconf.pl

options {
    directory "/var/named";
    /*
     * If there is a firewall between you and nameservers you want
     * to talk to, you might need to uncomment the query-source
     * directive below.  Previous versions of BIND always asked
     * questions using port 53, but BIND 8.1 uses an unprivileged
     * port by default.
     */
    // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
    type hint;
    file "named.ca";
};

zone "localhost" IN {
    type master;
    file "localhost.zone";
    allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
    type master;
    file "named.local";
    allow-update { none; };
};

zone "test199.com" IN {
    type master;
    file "test.com";
    allow-update { none; };
};


include "/etc/rndc.key";
**************************************************
/var/nam/test.com

$TTL    86400
@ IN SOA www.test199.com. root.www.test199.com. (
                   20043       ; serial (d. adams)
                   3H       ; refresh
                   15M       ; retry
                   1W       ; expiry
                   1D )       ; minimum

            IN    NS    172.16.0.236
           www    IN    A   172.16.0.99ed
******************************************
/var/named/localhost.zone
$TTL    86400
$ORIGIN localhost.
@    1D IN SOA    @ root (
                   64       ; serial
                   3H       ; refresh
                   15M       ; retry
                   1W       ; expiry
                   1D )       ; minimum

                1D IN NS    @
             1D IN A    127.0.0.1

本文由lanying 发布于Linuxsky 论坛,网址:http://bbs.linuxsky.org/thread-4420-1-1.html

TOP

复制内容到剪贴板
代码:
Sep 24 15:09:56 localhost named[13845]: dns_master_load: test.com:10: unknown RR type 'localhost'

Sep 24 15:09:56 localhost named[13845]: zone test199.com/IN: loading master file test.com: unknown class/type
检查拼写错误,看看是不是不该有空格的地方有了空格,少点了个点之类。
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

回复 #2 hew 的帖子

Sep 24 15:09:56 localhost named[13845]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022708
Sep 24 15:09:56 localhost named[13845]: zone localhost/IN: loaded serial 64
Sep 24 15:09:56 localhost named[13845]: running
谢谢楼上的指点,的确是多了空格的,
现在问题又出来了,就是上面那行,不知是什么原因?

Sep 24 15:09:56 localhost named[13845]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022708
Sep 24 15:09:56 localhost named[13845]: zone localhost/IN: loaded serial 64
这又什么解决呀?等待答案

TOP

正常
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

可是用 nslookup www.test199.com,不能解释,得不到地址172.16.0.99呀?
说什么找不到NXDOMAIN

TOP

给个详细的错误信息。
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

回复 #6 hew 的帖子

错误消息如:

TOP

回复 #7 lanying 的帖子

错误如下:
Sep 24 15:09:56 localhost named[13845]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022708
Sep 24 15:09:56 localhost named[13845]: zone localhost/IN: loaded serial 64

运行nslookup test199.com后,
提示为:server con't find www.test199.com :NXDOMIAN

/var/nam/test.com

$TTL    86400
@ IN SOA www.test199.com. root.www.test199.com. (
                   20043       ; serial (d. adams)
                   3H       ; refresh
                   15M       ; retry
                   1W       ; expiry
                   1D )       ; minimum

            IN    NS    172.16.0.236
           www    IN    A   172.16.0.99ed
还里有错了,我已改为: www    IN    A   172.16.0.99

为什么还不能解释得到IP地址172.16.0.99?????????

TOP

dig @dnsip www.test199.com 什么结果贴一下阿
你的鼓励,我的动力.
做人厚道,看贴回贴.
my linux blog

TOP

运行nslookup www.test199.com后提示如不:
[root@localhost root]# nslookup www.test199.com
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         172.16.0.236
Address:        172.16.0.236#53

** server can't find www.test199.com: NXDOMAIN

TOP

 12 12
发新话题