我正在尝试解决我目前在AWS EC2实例上使用新项目主机的DNS问题.这是一个全新的域名,我已经在注册商方面更新了域名服务器.
已经过了几天所以新记录已经传播.在挖掘时,我已经验证了NS记录正确指向:
; <<>> DiG 9.9.5-3-Ubuntu <<>> creativealchemyhealing.com in NS ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY,status: NOERROR,id: 32418 ;; flags: qr rd ra; QUERY: 1,ANSWER: 4,AUTHORITY: 0,ADDITIONAL: 1 ;; QUESTION SECTION: ;creativealchemyhealing.com. IN NS ;; ANSWER SECTION: creativealchemyhealing.com. 172800 IN NS ns-1467.awsdns-55.org. creativealchemyhealing.com. 172800 IN NS ns-364.awsdns-45.com. creativealchemyhealing.com. 172800 IN NS ns-640.awsdns-16.net. creativealchemyhealing.com. 172800 IN NS ns-1551.awsdns-01.co.uk.
NS记录好.接下来我去验证我在AWS Hosted Zone中设置的A记录是否正确查询我的EC2实例的弹性IP:
;; QUESTION SECTION: ;creativealchemyhealing.com. IN A ;; ANSWER SECTION: creativealchemyhealing.com. 300 IN A 54.183.25.131
记录看起来传播.优秀.
那么我检查了IP本身,看看是否加载了… IP地址加载正常:54.183.25.131.
那么为什么实际的域名不能正确查询呢? www.creativealchemyhealing.com
解决方法
www.creativealchemyhealing.com与creativealchemyhealing.com不同
你需要另一个A记录,或者一个cname
例如
www.creativealchemyhealing.com. 300 IN A 54.183.25.131