免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: king147
打印 上一主题 下一主题

[DNS] 请问我的named.conf正确吗??? [复制链接]

论坛徽章:
0
21 [报告]
发表于 2003-08-08 14:35 |只看该作者

请问我的named.conf正确吗???

[quote]原帖由 "king147"]Aug 8 14:37:23 localhost named[1963]: zone localhost/IN: loading master file localhost.zone: file not found[/quote 发表:


这说明你没有创建localhost.zone这个文件.在named.conf中把"localhost"区屏蔽掉就可以了.当然了你可以自己建立这个文件.

论坛徽章:
0
22 [报告]
发表于 2003-08-08 14:45 |只看该作者

请问我的named.conf正确吗???

// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * 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;
pid-file "/home/named.pid";
};

//
// 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; };
};

zone "king.com" IN {
      type master;
      file "named.king.hosts";
      allow-update { none; };
};

zone "0.0.10.in-addr.arpa" IN {
     type master;
        file "named.king.rev";
        allow-update { none; };
};

include "/etc/rndc.key";







[root@localhost root]# named
[root@localhost root]# tail -n 6 /var/log/messages
Aug  8 14:50:42 localhost named[2052]: binding TCP socket: address in use
Aug  8 14:50:42 localhost named[2052]: /etc/named.conf:20: couldn't add command channel 127.0.0.1#953: address in use
Aug  8 14:50:42 localhost named[2052]: zone 0.0.10.in-addr.arpa/IN: loaded serial 1997022700
Aug  8 14:50:42 localhost named[2052]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug  8 14:50:42 localhost named[2052]: zone king.com/IN: has no NS records
Aug  8 14:50:42 localhost named[2052]: running
[root@localhost root]#

论坛徽章:
0
23 [报告]
发表于 2003-08-08 14:54 |只看该作者

请问我的named.conf正确吗???

[quote]原帖由 "king147"]Aug 8 14:50:42 localhost named[2052]: zone king.com/IN: has no NS records [/quote 发表:
     

在named.king.hosts中还有这个语句吗?

IN NS www.king.com.

注意"IN"前面有个空格.

论坛徽章:
0
24 [报告]
发表于 2003-08-08 14:55 |只看该作者

请问我的named.conf正确吗???

[root@localhost etc]# named
[root@localhost etc]# tail -n 6 /var/log/messages
Aug  8 15:02:54 localhost named[2149]: binding TCP socket: address in use
Aug  8 15:02:54 localhost named[2149]: /etc/named.conf:20: couldn't add command channel 127.0.0.1#953: address in use
Aug  8 15:02:54 localhost named[2149]: zone 0.0.10.in-addr.arpa/IN: has no NS records
Aug  8 15:02:54 localhost named[2149]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug  8 15:02:54 localhost named[2149]: zone king.com/IN: has no NS records
Aug  8 15:02:54 localhost named[2149]: running
[root@localhost etc]# nslookup 10.0.0.3
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:         10.0.0.3
Address:        10.0.0.3#53

** server can't find 3.0.0.10.in-addr.arpa: SERVFAIL

论坛徽章:
0
25 [报告]
发表于 2003-08-08 15:02 |只看该作者

请问我的named.conf正确吗???

有IN NS www.king.com.
前面也加了空格。

论坛徽章:
0
26 [报告]
发表于 2003-08-08 15:02 |只看该作者

请问我的named.conf正确吗???

[quote]原帖由 "king147"]Aug 8 15:02:54 localhost named[2149]: zone 0.0.10.in-addr.arpa/IN: has no NS records [/quote 发表:
     

named.king.rev是不是已经修改过了?

论坛徽章:
0
27 [报告]
发表于 2003-08-08 15:14 |只看该作者

请问我的named.conf正确吗???

现在的结果是:

[root@localhost conf]# named
[root@localhost conf]# tail -n 6 /var/log/messages
Aug  8 15:19:03 localhost named[2248]: binding TCP socket: address in use
Aug  8 15:19:03 localhost named[2248]: /etc/named.conf:20: couldn't add command channel 127.0.0.1#953: address in use
Aug  8 15:19:03 localhost named[2248]: zone 0.0.10.in-addr.arpa/IN: loaded serial 1997022700
Aug  8 15:19:03 localhost named[2248]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug  8 15:19:03 localhost named[2248]: zone www.king.com/IN: loaded serial 1997022700
Aug  8 15:19:03 localhost named[2248]: running
[root@localhost conf]#
第三行,是不是有问题.谢谢!!!!

请问刚才的pid-file "/home/named.pid";为什么要加到/etc/named.conf的options中.

论坛徽章:
0
28 [报告]
发表于 2003-08-08 15:20 |只看该作者

请问我的named.conf正确吗???

就是说现在你无法邦定到该端口,你是不是开了几个named进程?

论坛徽章:
0
29 [报告]
发表于 2003-08-08 15:22 |只看该作者

请问我的named.conf正确吗???

我将机器重启了也一样,

论坛徽章:
0
30 [报告]
发表于 2003-08-08 15:26 |只看该作者

请问我的named.conf正确吗???

在options中有pid-file这个语句,表示指定记录named进程号的文件.可以任意设置,只要named进程可以读写该文件就可以了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP