|
|
说明:此DNS仅用于Cache only name server!
启动named,查看messages日志,发现如下错误:
Apr 20 14:32:58 zxr named[2036]: starting BIND 9.2.2
Apr 20 14:32:58 zxr named[2036]: using 1 CPU
Apr 20 14:32:58 zxr named[2036]: loading configuration from '/etc/named.conf'
Apr 20 14:32:59 zxr 4月 20 14:32:58 named: named 启动 succeeded
Apr 20 14:32:59 zxr named[2036]: no IPv6 interfaces found
Apr 20 14:32:59 zxr named[2036]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 20 14:32:59 zxr named[2036]: listening on IPv4 interface eth0, 172.16.81.68#53
Apr 20 14:32:59 zxr named[2036]: command channel listening on 127.0.0.1#953
Apr 20 14:32:59 zxr named[2036]: zone 0.0.127.in-addr.arpa/IN: has no NS records
Apr 20 14:32:59 zxr named[2036]: zone localhost/IN: has no NS records
Apr 20 14:32:59 zxr named[2036]: running
[root@zxr etc]#
我的NS授权到底错在哪呢?麻烦指点下
配置文件如下:
1、
[root@zxr etc]# less named.conf
## named.conf - configuration for bind #
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
# controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; };
# include "/etc/rndc.key";
options {
directory "/var/named/";
// query-source address * port 53;
};
zone "." IN{
type hint;
file "named.root";
};
zone "0.0.127.in-addr.arpa" IN{
type master;
file "named.local";
allow-update{none;};
};
zone "localhost" IN{
type master;
file "localhost.zone";
allow-update{none;};
};
include "/etc/rndc.key";
2、
[root@zxr named]# less 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
3、
[root@zxr named]# ls
172.16.81.zone localhost.zone named.local named.root zxr.edu.cn.zone
[root@zxr named]# less named.local
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost. |
|