閱讀232 返回首頁    go 阿裏雲 go 技術社區[雲棲]


ECS 無法解析域名問題場景分析

問題現象

ECS 上無法解析域名:xx.xxxx.com

本地非雲上網絡使用223.5.5.5以及第三方dns IP是可以獲取解析的

1.本地解析  xx.xxxx.com  正常

nslookup xx.xxxx.com 223.5.5.5
Server:    223.5.5.5
Address:  223.5.5.5#53

Non-authoritative answer:
Name:  xx.xxxx.com
Address: 11.11.11.11


2.ECS 上解析 baidu.com  正常

nslookup baidu.com
Server:    10.143.22.116
Address:  10.143.22.116#53

Non-authoritative answer:
Name:  baidu.com
Address: 220.181.57.217
Name:  baidu.com
Address: 123.125.114.144
Name:  baidu.com
Address: 111.13.101.208

3.ECS 上無法解析域名:xx.xxxx.com


ECS 使用多個內網 DNS 列表如下:
nameserver 10.143.22.116
nameserver 10.143.22.118
nameserver 10.202.72.116
nameserver 10.202.72.118

nslookup xx.xxxx.com
Server:    10.143.22.116
Address:  10.143.22.116#53

Non-authoritative answer:
*** Can't find xx.xxxx.com: No answer 

分析過程:

域名dns 都沒有問題,隻有特定域名在ecs內部使用默認dns無法解析
分析查看了下域名xx.xxxx.com 使用的是 雲解析dns
阿裏雲解析支持多線智能解析,智能解析線路目前支持默認、電信、聯通、教育網、移動國內31分省,海外更可細分到大洲與國家
如果隻選擇了各個運營商的解析IP,而沒有添加默認解析線路,如截圖所示
而阿裏雲內網dns ip不屬於任何運營商的節點,因此會無法獲取到解析

6a441e9674216952467eca021bbeaa5779420d28

解決方法:

雲解析dns中添加默認線路的解析IP後,ECS內部就可以正常獲取了








最後更新:2017-09-16 17:03:19

  上一篇:go  數十位雲棲專家齊聚京頤,暢談智慧醫療未來趨勢
  下一篇:go  神經網絡中的造物者-GANs