- 论坛徽章:
- 0
|
公司内网的一台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.
明白人给看看,非常感谢! |
|