|
我用的redhat linux 9 ,主机名改成linux,本机IP:192.168.1.2,下面是dns的相关配置文件:
1*** /etc/resolv.conf
nameserver 192.168.1.2
search localdomain
2*** /etc/named.conf
options {
directory "/var/named";
};
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 "yx.net" IN {
type master;
file "yx.net.hosts";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.rev";
};
include "/etc/rndc.key";
3*** /var/named/yx.net.hosts
$TTL 86400
@ IN SOA linux.yx.net. root.linux.yx.net.
(
1053891162
3H
15M
1W
1D )
IN NS linux.yx.net.
linux IN A 192.168.1.2
4*** /var/named/192.168.1.rev
$TTL 85600
@ IN SOA linux.yx.net root.linux.yx.net.
(
1053892104
3H
15M
1W
1D
)
IN NS linux.yx.net.
IN PTR linux.yx.net.
配置完成后,解析不出地址,请问,我错在哪里了,谢谢~~~~~ |
|