免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1435 | 回复: 1
打印 上一主题 下一主题

内网测试用S10下DNS配置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-21 15:46 |只看该作者 |倒序浏览
公司内网的一台U10 想做个DNS服务器测试下,不连INTERNET的,看了不少帖子,配完后总有个问题

mirr# /usr/sbin/named -g
22-Feb-2008 07:52:10.591 starting BIND 9.3.4 -g
22-Feb-2008 07:52:10.592 found 1 CPU, using 1 worker thread
22-Feb-2008 07:52:10.620 loading configuration from '/etc/named.conf'
22-Feb-2008 07:52:10.627 listening on IPv4 interface lo0, 127.0.0.1#53
22-Feb-2008 07:52:10.630 binding TCP socket: address in use
22-Feb-2008 07:52:10.631 listening on IPv4 interface hme0, 192.168.205.138#53
22-Feb-2008 07:52:10.632 binding TCP socket: address in use
22-Feb-2008 07:52:10.655 /etc/named.conf:39: couldn't add command channel 127.0.0.1#953: address in use
22-Feb-2008 07:52:10.655 ignoring config file logging statement due to -g option
22-Feb-2008 07:52:10.662 zone 0.0.127.in-addr-arpa/IN: has no NS records
22-Feb-2008 07:52:10.665 zone localhost/IN: has no NS records
22-Feb-2008 07:52:10.668 running

不知道怎么会有个has no NS records的问题。

mirr# cat /etc/named.conf
options {
      directory "/var/named";
};

//
// a caching only nameserver config
//
zone "." IN {
       type hint;
       file "named.root";
};

zone "localhost" {
      type master;
      file "localhost.zone";
};

zone "0.0.127.in-addr-arpa" {
      type master;
      file "named.local";
};

//End of rndc.conf

//Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
       algorithm hmac-md5;
       secret "UbwkUcXpMaJyxw0ADm6ThA==";
};

controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { "rndc-key"; };
};
//End of named.conf

mirr# cat localhost.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1



mirr# cat named.local
$TTL 86400
@ IN SOA localhost. root.localhost. (
2005022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.


明白人给看看,非常感谢!

论坛徽章:
0
2 [报告]
发表于 2008-02-21 15:47 |只看该作者
系统是S10的,BIND是9.3.4
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP