LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 766|回复: 1

Fedora下dns配置问题!请教高手

[复制链接]
发表于 2004-4-16 11:38:03 | 显示全部楼层 |阅读模式
在虚拟机里装了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]# nslookup dns.kof123.com
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 192.168.1.66
Address: 192.168.1.66#53

** server can't find dns.kof123.com: NXDOMAIN
发表于 2004-4-16 17:34:54 | 显示全部楼层
resolv.conf内容如何 ?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表