由 moonlover_ken 在 04-16-2004 11:38 发表:
Fedora下dns配置问题!请教高手
在虚拟机里装了Fedora,配置dns服务以后无法解析?为什么?
以前用redhat9都很正常啊!
dns地址已经指向本机了,配置一开始是用webmin配的,不行,然后直接改配置文件,也不行,最后拿书抄配置文件了,这都不行,我没办法了!!!请教高手,以下是我的配置文件内容:
/etc/named.conf:
// generated by named-bootconf.pl
options {
directory "/var/named";
pid-file "/var/named/named.pid";
allow-query { "192.168.1.0/24";};
/*
If there is a firewall between you and nameservers you wan
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; };
};
include "/etc/rndc.key";
zone "kof123.com" {
type master;
file "kof123.com.hosts";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "192.168.1.rev";
};
/var/named/kof123.com.hosts:
$ttl 1D
@ IN SOA dns.kof123.com. root.localhost.(
1053891162
3H
15M
1W
1D)
IN NS dns.kof123.com.
IN MX 5 azerow
dns IN A 192.168.1.66
azerow IN A 192.168.1.3
mail IN CNAME azerow.kof123.com.
/var/named/192.168.1.rev:
$ttl 1D
@ IN SOA dns.kof123.com. root.localhost.(
1053092104
3H
15M
1W
1D)
IN NS dns.kof123.com.
66 IN PTR dns.kof123.com.
3 IN PTR azerow.kof123.com.
[root@Fedora named]# nslo