1
Linux 討論版 / 部署sub domain失敗
« 於: 2014-01-26 10:00 »
$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 ....)........
請問是哪裏配置有問題?
@ 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 ....)........
請問是哪裏配置有問題?