我试图将CNAME指向一个S3存储桶,但是仍然遇到nslookup(以及我的浏览器)找不到CNAME的问题.
但是,当我使用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
解决方法
似乎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