dns – Mac Os X终端:如何查看域的区域文件?

我试图查询域以检索其完整的DNS区域列表(A,MX,CNAME,…)

看来主机-a只返回NS和MX记录。

任何帮助将不胜感激。

谢谢。

→ dig -t ANY stackoverflow.com 

; <<>> DiG 9.6.0-APPLE-P2 <<>> -t ANY stackoverflow.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20242
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;stackoverflow.com.     IN  ANY

;; ANSWER SECTION:
stackoverflow.com.  1202    IN  A   64.34.119.12
stackoverflow.com.  65902   IN  NS  ns3.p19.dynect.net.
stackoverflow.com.  65902   IN  NS  ns1.p19.dynect.net.
stackoverflow.com.  65902   IN  NS  ns4.p19.dynect.net.
stackoverflow.com.  65902   IN  NS  ns2.p19.dynect.net.

;; Query time: 38 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Tue Nov 23 19:55:51 2010
;; MSG SIZE  rcvd: 137

这对你有用吗?

http://stackoverflow.com/questions/4260183/mac-os-x-terminal-how-to-view-a-domains-zone-file

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:dns – Mac Os X终端:如何查看域的区域文件?