Chinaunix

标题: bind信息 [打印本页]

作者: 3645636    时间: 2008-12-18 23:18
标题: bind信息
[root@localhost etc]# /usr/named/sbin/named -g
18-Dec-2008 22:41:43.273 starting BIND 9.5.0-P2 -g
18-Dec-2008 22:41:43.275 loading configuration from '/usr/named/etc/named.conf'
18-Dec-2008 22:41:43.275 /usr/named/etc/named.conf:15: missing ';' before '}'
18-Dec-2008 22:41:43.276 loading configuration: failure
18-Dec-2008 22:41:43.276 exiting (due to fatal error)
[root@localhost etc]# vi named.conf
[root@localhost etc]# /usr/named/sbin/named -g
18-Dec-2008 22:42:07.288 starting BIND 9.5.0-P2 -g
18-Dec-2008 22:42:07.290 loading configuration from '/usr/named/etc/named.conf'
18-Dec-2008 22:42:07.291 listening on IPv4 interface eth0, 218.84.9.241#53
18-Dec-2008 22:42:07.293 default max-cache-size (33554432) applies
18-Dec-2008 22:42:07.293 automatic empty zone: 0.IN-ADDR.ARPA
18-Dec-2008 22:42:07.293 automatic empty zone: 127.IN-ADDR.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: 254.169.IN-ADDR.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: 2.0.192.IN-ADDR.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: D.F.IP6.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: 8.E.F.IP6.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: 9.E.F.IP6.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: A.E.F.IP6.ARPA
18-Dec-2008 22:42:07.294 automatic empty zone: B.E.F.IP6.ARPA
18-Dec-2008 22:42:07.295 default max-cache-size (33554432) applies: view _bind
18-Dec-2008 22:42:07.296 command channel listening on 127.0.0.1#953
18-Dec-2008 22:42:07.296 ignoring config file logging statement due to -g option

18-Dec-2008 22:42:07.297 local:3: SOA record not at top of zone (0.0.127.in-addr
.arpa.in.0.0.127.in-addr.arpa)
18-Dec-2008 22:42:07.297 zone 0.0.127.in-addr.arpa/IN: loading from master file
local failed: not at top of zone
18-Dec-2008 22:42:07.297 zone 9.84.218.in-addr.arpa/IN: has no NS records
18-Dec-2008 22:42:07.298 zone bind.com/IN: NS 'bind.com' has no address records
(A or AAAA)
18-Dec-2008 22:42:07.298 zone bind.com/IN: loaded serial 1053891162
18-Dec-2008 22:42:07.299 running
18-Dec-2008 22:42:07.299 zone bind.com/IN: sending notifies (serial 1053891162)

18-Dec-2008 22:47:13.002 client 124.119.80.58#2708: query (cache) 'www.baidu.com
/A/IN' denied
18-Dec-2008 22:47:33.139 client 124.119.80.58#2719: query (cache) 'www.nba.com/A
/IN' denied


注意这二行,这是不是表示,DNS已经配置成功。并且客户已经可以解析了
我的named.conf

[root@localhost li]# cat /usr/named/etc/named.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "HI0nE5DaS0mxy3cgBA2Z3w==";
};

controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};

options {
directory "/var/named";
pid-file "named.pid";
listen-on { 218.84.9/24; };
};

zone "." in {
        type hint;
        file "root";
        };

zone "0.0.127.in-addr.arpa" in {
        type master;
        file "local";
};

zone "bind.com" in {
     type master;
     file "bind.zone";
     };

zone "9.84.218.in-addr.arpa" in {
     type master;
     file "bind.local";
};




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2