|
|
我用的是REDHAT 9 bind-9.2.1-16的包,系统开始时选装的,主机名是biglong
我的/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 "lei.com" {
type master;
file "lei.com.zone";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "192.168.1.rev";
};
include "/etc/rndc.key";
我的lei.com.zone文件配置如下:
$ttl 1D
@ IN SOA biglong.lei.com. root.biglong.lei.com. (
1997022700
3H
15M
1W
1D )
IN NS biglong.lei.com.
IN MX 5 biglong.lei.com.
biglong IN A 192.168.1.33
www IN CNAME biglong.lei.com.
我的反向区域文件192.168.1.rev配置如下:
$TTL 86400
@ IN SOA biglong.lei.com. root.biglong.lei.com. (
1997022700
3H
15M
1W
1D)
IN NS biglong.lei.com.
33 IN PTR biglong.lei.com.
以上就是我的配置文件,
那么现在我修改/etc/resolv.conf 添加nameserver 192.168.1.33
最后用host biglong.lei.com后得出以下结果
Host biglong.lei.com not found: 2(SERVFAIL)
这明显是上面有问题的说可我实在是找不出来问题,哪位大大能够指点一下,谢谢! |
|