- 论坛徽章:
- 0
|
请问我的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]# |
|