红联Linux门户
Linux帮助

求救:enterprise 4 下配置DNS老失败!

发布时间:2009-06-18 22:58:16来源:红联作者:bibay
我在VM里配了一天的DNS服务器,老不成功!!真的有点想死哦!~下面是我的配置……
/etc/named.conf:
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
pid-file "/var/run/named/named.pid";
/*
* 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;
allow-query { any; };
};

controls {
inet 127.0.0.1 port 953
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 "bibay.com" IN {
type master;
file "bibay.com.zone";
allow-query { any; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "named.168.192";
allow-query { any; };
};


哪里错了……希望哪位好心人能帮帮忙!~~谢谢~!!
文章评论

共有 2 条评论

  1. zhenwei252 于 2009-07-03 10:32:52发表:

    这个是没错,那你有bibay.com.zone和named.168.192这两个文件吗?

    allow-query { any; }这个是做什么的?

  2. povest 于 2009-06-19 00:00:28发表:

    不懂噢