我正在尝试将 CNAME 指向 S3 存储桶,但一直存在无法找到 CNAME 的问题nslookup
(就此而言,我的浏览器也无法找到)。
但是当我使用时dig
,它会显示域的正确输出。我相当确定我在这里遗漏了一些愚蠢的东西,但我似乎找不到问题所在 :(
任何帮助都将不胜感激!
➜ ~ nslookup img.springe.st
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find img.springe.st: NXDOMAIN
➜ ~ dig img.springe.st
; <<>> DiG 9.8.3-P1 <<>> img.springe.st
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8429
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;img.springe.st. IN A
;; ANSWER SECTION:
img.springe.st. 1800 IN CNAME imgs3-website-eu-west-1.amazonaws.com.
;; AUTHORITY SECTION:
amazonaws.com. 5 IN SOA pdns1.ultradns.net. hostmaster.amazon.com. 2013111100 180 60 2592000 5
;; Query time: 55 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Nov 18 15:47:10 2013
;; MSG SIZE rcvd: 155
答案1
看来 Google DNS 无法解析您的 CNAME,因为它指向的主机名本身无法解析:
# nslookup imgs3-website-eu-west-1-amazonaws.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find imgs3-website-eu-west-1-amazonaws.com: NXDOMAIN
答案2
是不是因为CNAME指向的主机名不存在?
dig imgs3-website-eu-west-1.amazonaws.com
;; QUESTION SECTION:
;imgs3-website-eu-west-1.amazonaws.com. IN A
;; AUTHORITY SECTION:
amazonaws.com. 5 IN SOA dns-external-master.amazon.com. hostmaster.amazon.com. 2012091400 180 60 2592000 5
答案3
imgs3-website-eu-west-1.amazonaws.com 无法解析...因此,CNAME 记录无效
答案4
nic.st 接口似乎以某种方式转换img.springe.st.s3-website-eu-west-1.amazonaws.com
为imgs3-website-eu-west-1.amazonaws.com.
。我在添加 DNS 条目时错过了这一点。感谢您指出 cname 引用的域实际上必须存在才能解析!