|
|

楼主 |
发表于 2006-4-8 23:29:08
|
显示全部楼层
这是/etc/named.conf文件的内容:
// Default named.conf generated by install of bind-9.2.4-2
options {
directory "/var/named";
};
include "/etc/rndc.key";
zone "." {
type hint;
file "named.ca";
};
zone "example.com" {
type master;
file "example.com.zone";
allow-transfer {none;};
};
zone "143.34.178.in-addr.arpa" {
type master;
file "178.34.143.arpa";
allow-transfer {none;};
};
这是178.34.143.arpa文件的内容
$ttl 36000
143.34.178.in-addr.arpa. IN SOA www.example.com. admin.example.com. (
2005090507
10800
3600
604800
36000 )
143.34.178.in-addr.arpa. IN NS www.example.com.
9 IN PTR www.example.com.
180 IN PTR mail.example.com.
11 IN PTR ftp.example.com.
这是文件example.com.zone的内容:
$ttl 36000
example.com. IN SOA www.example.com. admin.example.com. (
2005090507
10800
3600
604800
36000 )
example.com. IN NS www.example.com.
www IN A 178.34.143.9
mail IN A 178.34.143.180
ftp IN A 178.34.143.11
example IN MX 12 mail.example.com.
这是文件/etc/resolve.conf的内容:
nameserver 178.34.143.9
可以正常启动,不能正常停止,只能用kill杀死,ping不通,nslookup也不行,请各位帮帮忙。 |
|