LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 894|回复: 0

请大家帮我看看这个DNS服务器的问题

[复制链接]
发表于 2003-2-27 15:06:42 | 显示全部楼层 |阅读模式
我配好服务器后。用nslookup来测试:
输入:www。khsun。com
正常。
但是输入:192.168.0.8
就会提示:
> 192.168.0.8
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find 8.0.168.192.in-addr.arpa: NXDOMAIN

我的几个文件分别如下:
/etc/host.conf
order hosts,bind

/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       ghw.khsun.com   ghw     localhost.localdomain   localhost
192.168.0.8     ghw.khsun.com   ghw
192.168.0.8     www.khsun.com   www
192.168.0.8     ftp.khsun.com   ftp
~
/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 "0.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.0.in-addr.arpa.zone";
};

zone "khsun.com" IN {
        type master;
        file "khsun.com.zone";
};

include "/etc/rndc.key";


/etc/reslove.conf

search khsun.com
nameserver 127.0.0.1
nameserver 192.168.0.8
nameserver 192.168.0.31


/var/named/192.168.0.in-addr.arpa.zone

$TTL 8640
@ IN SOA khsun.com. root.localhost. (
        6;serial
        2880;refresh
        720;retry
        60480;expire
        8640;ttk
)
@ IN NS ghw.khsun.com.
dns IN MX 15 ghw.khsun.com.
@ IN MX 10 khsun.com.
www IN A 192.168.0.8
ftp IN A 192.168.0.8
@ IN A 192.168.0.8


/var/named/khsun.com.zone


$TTL 8640
@  IN  SOA  khsun.com.  master.ghw.khsun.com. (
                        6;serial
                        2880;refresh
                        720;retry
                        60480;expire
                        8640;ttk
)

@  IN NS ghw.khsun.com.
dns IN MX 15 ghw.khsun.com.
@  IN MX 10 khsun.com.
www IN A 192.168.0.8
ftp IN A 192.168.0.8
@  IN A 192.168.0.8


/var/named/localhost.zone

$TTL    86400
$ORIGIN localhost.
@                       1D IN SOA       @ root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        1D IN NS        @
                        1D IN A         127.0.0.1

/var/named/named.local

$TTL    86400
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      localhost.

1       IN      PTR     localhost.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表