|
楼主 |
发表于 2003-7-18 11:22:31
|
显示全部楼层
下面是我DNS的配置文件
named.conf
master.com.zone
0.168.192.in-addr.arpa.zone
named.conf文件配置如下
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
options {
directory "/var/named/";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "master.com" {
type master;
file "/var/named/master.com.zone";
};
zone "0.168.192.in-addr.arpa" {
type master;
file /var/named/0.168.192.in-addr.arpa.zone";
};
master.com.zone 文件配置如下:
$TTL 86400
@ IN SOA master.com. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS ns.master.com.
www IN A 192.168.0.6
0.168.192.in-addr.arpa.zone 文件配置如下:
$TTL 86400
@ IN SOA master.com. root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS ns.master.com.
6 IN PTR www.master.com.
大家帮我看一下.我的DNS动去不了是不是跟以下的文件配置有关.请大家帮助指正里内的错误. |
|