免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-21 15:46 |只看该作者 |倒序浏览
公司内网的一台U10 想做个DNS服务器测试下,不连INTERNET的,看了不少帖子,配完后总有个问题\r\n\r\nmirr# /usr/sbin/named -g\r\n22-Feb-2008 07:52:10.591 starting BIND 9.3.4 -g\r\n22-Feb-2008 07:52:10.592 found 1 CPU, using 1 worker thread\r\n22-Feb-2008 07:52:10.620 loading configuration from \'/etc/named.conf\'\r\n22-Feb-2008 07:52:10.627 listening on IPv4 interface lo0, 127.0.0.1#53\r\n22-Feb-2008 07:52:10.630 binding TCP socket: address in use\r\n22-Feb-2008 07:52:10.631 listening on IPv4 interface hme0, 192.168.205.138#53\r\n22-Feb-2008 07:52:10.632 binding TCP socket: address in use\r\n22-Feb-2008 07:52:10.655 /etc/named.conf:39: couldn\'t add command channel 127.0.0.1#953: address in use\r\n22-Feb-2008 07:52:10.655 ignoring config file logging statement due to -g option\r\n22-Feb-2008 07:52:10.662 zone 0.0.127.in-addr-arpa/IN: has no NS records\r\n22-Feb-2008 07:52:10.665 zone localhost/IN: has no NS records\r\n22-Feb-2008 07:52:10.668 running\r\n\r\n不知道怎么会有个has no NS records的问题。\r\n\r\nmirr# cat /etc/named.conf\r\noptions {\r\n      directory \"/var/named\";\r\n};\r\n\r\n//\r\n// a caching only nameserver config\r\n//\r\nzone \".\" IN {\r\n       type hint;\r\n       file \"named.root\";\r\n};\r\n\r\nzone \"localhost\" {\r\n      type master;\r\n      file \"localhost.zone\";\r\n};\r\n\r\nzone \"0.0.127.in-addr-arpa\" {\r\n      type master;\r\n      file \"named.local\";\r\n};\r\n\r\n//End of rndc.conf\r\n\r\n//Use with the following in named.conf, adjusting the allow list as needed:\r\n key \"rndc-key\" {\r\n       algorithm hmac-md5;\r\n       secret \"UbwkUcXpMaJyxw0ADm6ThA==\";\r\n };\r\n \r\n controls {\r\n       inet 127.0.0.1 port 953\r\n               allow { 127.0.0.1; } keys { \"rndc-key\"; };\r\n };\r\n//End of named.conf\r\n\r\nmirr# cat localhost.zone\r\n$TTL 86400\r\n$ORIGIN localhost.\r\n@ 1D IN SOA @ root (\r\n42 ; serial (d. adams)\r\n3H ; refresh\r\n15M ; retry\r\n1W ; expiry\r\n1D ) ; minimum\r\n1D IN NS @\r\n1D IN A 127.0.0.1\r\n\r\n\r\n\r\nmirr# cat named.local\r\n$TTL 86400\r\n@ IN SOA localhost. root.localhost. (\r\n2005022700 ; Serial\r\n28800 ; Refresh\r\n14400 ; Retry\r\n3600000 ; Expire\r\n86400 ) ; Minimum\r\nIN NS localhost.\r\n1 IN PTR localhost.\r\n\r\n\r\n明白人给看看,非常感谢!

论坛徽章:
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