Chinaunix

标题: as 3 上bind 配置问题,望高人不吝赐教********* [打印本页]

作者: gangpi    时间: 2005-12-27 16:13
标题: as 3 上bind 配置问题,望高人不吝赐教*********
安装了as 3,默认安装了bind ,然后配置为从属DNS,运行,发现发现自己配制的go.edu.cn这个域不能正向解析,报错:“can't find www.go.edu.cn: Server failed”,其他的公网DNS正向解析还正常。请高手赐教。

vi /etc/named.conf

// generated by named-bootconf.pl

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 "go.edu.cn" IN {
        type slave;
        file "go.edu.cns";
        masters {
                211.64.222.6;
        };
};

include "/etc/rndc.key";
~
~
"/etc/named.conf" 46L, 896C



[root@dns1 named]# pwd
/var/run/named
[root@dns1 named]# ls -l
总用量 4
-rw-r--r--    1 named    named           5 12月 27 15:49 named.pid


[root@dns1 named]# pwd
/var/named
[root@dns1 named]# ls -l
总用量 16
-rw-r--r--    1 named    named         195 2003-01-25  localhost.zone
-rw-r--r--    1 named    named        2499 2003-01-25  named.ca
-rw-r--r--    1 named    named         433 2003-01-25  named.local
-rw-r--r--    1 named    named           0 12月 27 15:33 go.edu.cns
drwxrwx---    2 named    named        4096 12月 27 14:42 slaves



service named restart
停止 named:[  确定  ]
启动 named:[  确定  ]
[root@dns1 named]# named -g
Dec 27 15:49:57.328 starting BIND 9.2.4rc6 -g
Dec 27 15:49:57.328 using 1 CPU
Dec 27 15:49:57.335 loading configuration from '/etc/named.conf'
Dec 27 15:49:57.345 no IPv6 interfaces found
Dec 27 15:49:57.346 listening on IPv4 interface lo, 127.0.0.1#53
Dec 27 15:49:57.347 binding TCP socket: address in use
Dec 27 15:49:57.347 listening on IPv4 interface eth0, 211.64.222.8#53
Dec 27 15:49:57.347 binding TCP socket: address in use
Dec 27 15:49:57.353 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use
Dec 27 15:49:57.354 ignoring config file logging statement due to -g option
Dec 27 15:49:57.354 couldn't open pid file '/var/run/named/named.pid': Permission denied
Dec 27 15:49:57.354 exiting (due to early fatal error)
作者: gangpi    时间: 2005-12-27 16:43
标题: 刚刚自己找到了问题,希望对大家有所帮助
chown named:named /var/named
作者: 风之幻想    时间: 2005-12-27 17:36
-rw-r--r--    1 named    named           0 12月 27 15:33 go.edu.cns
你的这个文件都是空的怎么能解析成功呢.
作者: maxwell_81    时间: 2005-12-27 17:40
在named.conf  option
中增加pid-file "/var/run/named/named.pid";
其次改/var/run/named的所有权为named
命令:chown named:named var/run/named/




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2