Chinaunix
标题:
内网测试用S10下DNS配置问题
[打印本页]
作者:
北极星上的人
时间:
2008-02-21 15:46
标题:
内网测试用S10下DNS配置问题
公司内网的一台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明白人给看看,非常感谢!
作者:
北极星上的人
时间:
2008-02-21 15:47
系统是S10的,BIND是9.3.4
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2