Mac Os X 终端:如何查看域的区域文件?
我正在尝试查询一个域以检索其完整的 DNS 区域列表(A、MX、CNAME,...)
似乎 host -a
仅返回 NS 和 MX 记录。
任何帮助将不胜感激。
谢谢。
I'm trying to query a domain to retrieve its full DNS zone listings (A, MX, CNAME,…)
It seems that host -a
is only returning the NS and MX records.
Any help would be much appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这对你有用吗?
Does that work for you?
TL;DR
https://superuser.com/questions/24389/is-there-a-way-to-get-the-complete-zone-file-for-a-domain-without-contacting-its
秉承开源和自由选择的良好传统,这里有另一个选项:
host -t NS stackoverflow.com
它将输出以下内容:因为您已经指定了类型。或者使用标志
-a
来查看所有记录。或者,您可以使用nslookup -type=any stackoverflow.com
。但不幸的是,这些选项都不会为您提供区域文件。但是如果您在另一个 stackexchange 论坛上搜索,您会在这里找到答案: https://superuser.com/questions/24389/is-there-a-way-to-get-the-complete-zone-file-for -a-domain-without-contacting-itsTL;DR
https://superuser.com/questions/24389/is-there-a-way-to-get-the-complete-zone-file-for-a-domain-without-contacting-its
In good traditions of opensource and freedom of choice, here's anther option:
host -t NS stackoverflow.com
which would output following:because you've specified the type. Or use flag
-a
instead to see all records. Alternatively you may usenslookup -type=any stackoverflow.com
. But unfortunately none of these options would give you the zone file. BUT if you'd search on another stackexchange forum you would find the answer here: https://superuser.com/questions/24389/is-there-a-way-to-get-the-complete-zone-file-for-a-domain-without-contacting-its