免费注册 查看新帖 |

Chinaunix

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

[DNS] 部署子域失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-01-24 09:53 |只看该作者 |倒序浏览
$TTL 86400
@ IN SOA 13hospital.cn. ns.13hospital.cn. (
                               2014010000
                               10800
                               3600
                               604800
                               0
                                       )

@       IN      NS      ns.13hospital.cn.
ns      IN      A       172.24.28.6
mail    IN      A       172.24.28.206
www     IN      A       172.24.28.206
sub     IN      NS      ns.sub.13hospital.cn.
ns.sub  IN      A       172.24.28.14

以上是我的zone配置文件,能够正常解析www.13hospital.cn之类的域名:
[root@ns /var/named/chroot/var/named]# nslookup www.13hospital.cn
Server:         172.24.28.6
Address:        172.24.28.6#53

Name:   www.13hospital.cn
Address: 172.24.28.206

但我解析ns.sub.13hospital.cn的时候出现问题:
[root@ns /var/named/chroot/var/named]# nslookup ns.sub.13hospital.cn
Server:         172.24.28.6
Address:        172.24.28.6#53

Non-authoritative answer:
Name:   ns.sub.13hospital.cn
Address: 211.98.70.194

正常情况下,解析出来的地址应该是172.24.28.14才对,通过抓包发现解析这个域名的时候,DNS服务器直接转发到我的上级DNS去了。
09:51:24.212900 IP 172.24.28.6.25573 > 211.98.4.1.53:  24629+ [1au] A? ns.sub.13hospital.cn. (49)
        0x0000:  4500 004d 7148 0000 4011 69d6 ac18 1c06  E..MqH..@.i.....
        0x0010:  d362 0401 63e5 0035 0039 ddcd 6035 0100  .b..c..5.9..`5..
        0x0020:  0001 0000 0000 0001 026e 7303 7375 620a  .........ns.sub.
        0x0030:  3133 686f 7370 6974 616c 0263 6e00 0001  13hospital.cn...
        0x0040:  0001 0000 2910 0000 0080 0000 00         ....)........
09:51:24.702608 IP 211.98.4.1.53 > 172.24.28.6.25573:  24629 1/1/1 A 211.98.70.194 (129)
        0x0000:  4500 009d 0120 4000 f811 e1ad d362 0401  E.....@......b..
        0x0010:  ac18 1c06 0035 63e5 0089 b096 6035 8180  .....5c.....`5..
        0x0020:  0001 0001 0001 0001 026e 7303 7375 620a  .........ns.sub.
        0x0030:  3133 686f 7370 6974 616c 0263 6e00 0001  13hospital.cn...
        0x0040:  0001 c00c 0001 0001 0000 0e10 0004 d362  ...............b
        0x0050:  46c2 c013 0006 0001 0000 0010 0034 046e  F............4.n
        0x0060:  7331 3308 7869 6e63 6163 6865 0363 6f6d  s13.xincache.com
        0x0070:  000a 686f 7374 6d61 7374 6572 c047 7754  ..hostmaster.GwT
        0x0080:  bf5e 0000 0e10 0000 0384 000a fc80 0000  .^..............
        0x0090:  0e10 0000 2910 0000 0080 0000 00         ....)........

请问是哪里配置有问题?

论坛徽章:
0
2 [报告]
发表于 2014-04-25 17:58 |只看该作者
sub     IN      NS      ns.sub.13hospital.cn.  这句配置把sub.13hospital.cn这个子域的授权指到ns.sub.13hospital.cn这台服务器去了。
去掉这行配置再重载一下应该就能解析了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP