由 黄叶 在 02-27-2003 15:06 发表:
请大家帮我看看这个DNS服务器的问题
我配好服务器后。用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.z