免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2298 | 回复: 0
打印 上一主题 下一主题

[DNS] bind信息 [复制链接]

论坛徽章:
4
IT运维版块每日发帖之星
日期:2015-09-01 06:20:00IT运维版块每日发帖之星
日期:2015-10-09 06:20:00操作系统版块每日发帖之星
日期:2015-10-20 06:20:00IT运维版块每日发帖之星
日期:2015-11-03 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-18 23:18 |只看该作者 |倒序浏览
[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";
};
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP