每次使用时dig
我都会有一种模糊的感觉,我不确定它是否给了我正确的数据。
现在我是这样使用它的:
# dig socialimpactportfolio.com
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> socialimpactportfolio.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35289
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;socialimpactportfolio.com. IN A
;; AUTHORITY SECTION:
socialimpactportfolio.com. 1799 IN SOA dns1.name-services.com. info.name-services.com. 2002050701 10800 3600 604800 3600
;; Query time: 121 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu May 22 14:01:03 2014
;; MSG SIZE rcvd: 103
ANSWER
正如您所见,尽管该域名上有一个正常运行的网站,但却没有任何部分。
为什么?
我真的想要一个能够以最不令人困惑的方式显示所有 DNS 记录的程序。
答案1
您的查询不正确,或者换句话说 - 没有 的条目socialimpactportfolio.com
。Dig 正在告诉您有关该问题的信息。
该域名在浏览器中有效,因为它会尝试添加前缀www.
,瞧:
dig www.socialimpactportfolio.com
...
www.socialimpactportfolio.com. 1783 IN CNAME kochi-9186.herokussl.com.
如果您正在寻找一种可以以某种方式向您显示完整区域的工具 - 我认为您运气不佳。
答案2
获取NOERROR
但无ANSWER SECTION
是告诉您域名确实存在,但没有指定类型的记录。事实上,域名可以存在而没有任何记录,这与返回不同NXDOMAIN
,尽管在许多情况下应用程序会将它们视为相同。
两种情况下都SOA
包含一条记录,以便客户端知道该答案可能会被缓存多长时间。
完全没有记录的域名可以拥有子域名,而子域名确实有记录。
答案3
我刚刚检查过,该域名没有 A 记录,因此您的 dig 输出是正确的。该网站位于万维网。.socialimpactportfolio.com,即 www.socialimpactportfolio.com,它再次指向(两个链接的 CNAME)amazonaws.com。
答案4
dig 输出中说明了一切:
status: NOERROR
QUERY: 1, ANSWER: 0, AUTHORITY: 1
没有错误,您进行了 1 次查询,没有答案,响应来自权威名称服务器。
如果您搜索该区域的所有记录,您将找到更多信息:
PS C:\Users\Administrator> nslookup -type=all socialimpactportfolio.com
Server: UnKnown
Address: fe80::1
Non-authoritative answer:
socialimpactportfolio.com MX preference = 5, mail exchanger = eforwardct2.name-services.com
socialimpactportfolio.com MX preference = 5, mail exchanger = eforwardct3.name-services.com
socialimpactportfolio.com MX preference = 5, mail exchanger = eforwardct.name-services.com
socialimpactportfolio.com
primary name server = dns1.name-services.com
responsible mail addr = info.name-services.com
serial = 2002050701
refresh = 10800 (3 hours)
retry = 3600 (1 hour)
expire = 604800 (7 days)
default TTL = 3600 (1 hour)
socialimpactportfolio.com nameserver = dns4.name-services.com
socialimpactportfolio.com nameserver = dns3.name-services.com
socialimpactportfolio.com nameserver = dns2.name-services.com
socialimpactportfolio.com nameserver = dns1.name-services.com
socialimpactportfolio.com nameserver = dns5.name-services.com
socialimpactportfolio.com nameserver = dns5.name-services.com
socialimpactportfolio.com nameserver = dns4.name-services.com
socialimpactportfolio.com nameserver = dns3.name-services.com
socialimpactportfolio.com nameserver = dns2.name-services.com
socialimpactportfolio.com nameserver = dns1.name-services.com
dns1.name-services.com internet address = 98.124.192.1
dns2.name-services.com internet address = 98.124.197.1
dns3.name-services.com internet address = 98.124.193.1
dns4.name-services.com internet address = 98.124.194.1
dns5.name-services.com internet address = 98.124.196.1