使用 dig 搜索 SPF 记录

发布于 2024-09-30 12:31:25 字数 1549 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拿命拼未来 2024-10-07 12:31:25

我相信我通过这个挖掘方法找到了正确的答案。我能够使用以下查询查找特定 DNS 上的 SPF 记录:

dig @ns1.nameserver1.example domain.example txt

I believe that I found the correct answer through this dig How To. I was able to look up the SPF records on a specific DNS, by using the following query:

dig @ns1.nameserver1.example domain.example txt
芯好空 2024-10-07 12:31:25

dig 实用程序使用起来非常方便。参数的顺序并不重要。我将向您展示一些简单的示例。
要获取所有根名称服务器,请使用

# dig

要获取特定主机的 TXT 记录,请使用

# dig example.com txt
# dig host.example.com txt

要查询特定名称服务器,只需添加 @nameserver.tld

# dig host.example.com txt @a.iana-servers.net

SPF RFC4408 表示 SPF 记录可以存储为 SPF 或 TXT。然而,目前几乎所有的记录都只使用 TXT 记录。因此,如果您只获取 TXT 记录,那么您是非常安全的。

我制作了一个 SPF 检查器来可视化域的 SPF 记录。它可能会帮助您更好地了解 SPF 记录。您可以在这里找到它:
http://spf.myisp.ch

The dig utility is pretty convenient to use. The order of the arguments don't really matter.I'll show you some easy examples.
To get all root name servers use

# dig

To get a TXT record of a specific host use

# dig example.com txt
# dig host.example.com txt

To query a specific name server just add @nameserver.tld

# dig host.example.com txt @a.iana-servers.net

The SPF RFC4408 says that SPF records can be stored as SPF or TXT. However nearly all use only TXT records at the moment. So you are pretty safe if you only fetch TXT records.

I made a SPF checker for visualising the SPF records of a domain. It might help you to understand SPF records better. You can find it here:
http://spf.myisp.ch

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文