如何通过域名查询Spamhaus的SBL?

发布于 2024-09-11 22:22:58 字数 1052 浏览 0 评论 0原文

我想查询 SpamhausSBL 使用域名。我知道这是可能的,因为这个 表格(按 ISP 域名查找 SBL 列表) ) 会这样做,SpamAssassin 也会这样做,但我似乎只能让它与 IP 地址一起工作。我快速浏览了 SpamAssassin 代码,但它是如此笼统,以至于我可能会花几个小时来追踪实际执行某些操作的代码。现在我可以成功地在 SBL 中查询 IP 地址,如下所示:

#returns 127.0.0.2, so 208.73.210.0 is on the blacklist
dig +short 0.210.73.208.sbl.spamhaus.org 

#returns nothing, so 72.14.225.72 isn't on the blacklist
dig +short 72.225.14.72.sbl.spamhaus.org

查询域名似乎与 DNS TXT 记录有关,但我不知道要查找的正确主机名。当我尝试类似的操作时

dig oversee.net.sbl.spamhaus.org TXT

,我没有得到任何有用的信息,但是如果您 使用表单搜索,您会发现 Overseas.net 与 208.73.210.0 关联,该地址于 2009 年 7 月 30 日 21:17 GMT 被报告为垃圾邮件。

I want to query Spamhaus's SBL using a domain name. I know this is possible to do because this form (Find SBL Listings by ISP Domain Name) does it and SpamAssassin does it, but I can only seem to get it to work with IP addresses. I took a quick look at the SpamAssassin code, but it has been so generalized that I could probably spend a couple hours tracking down the code that actually does something. Right now I can successfully query SBL for IP addresses like this:

#returns 127.0.0.2, so 208.73.210.0 is on the blacklist
dig +short 0.210.73.208.sbl.spamhaus.org 

#returns nothing, so 72.14.225.72 isn't on the blacklist
dig +short 72.225.14.72.sbl.spamhaus.org

Querying with domain names seems to have something to do with DNS TXT records, but I don't know the right hostname to lookup. When I try something like

dig oversee.net.sbl.spamhaus.org TXT

I don't get any useful information back, but if you search with the form you find that oversee.net is associated with 208.73.210.0 which was reported as spamming on 30-Jul-2009 21:17 GMT.

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

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

发布评论

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

评论(1

尘世孤行 2024-09-18 22:22:58

域位于“域阻止列表”中,而不是 SBL 中。使用 dbl.spamhaus.org 作为域名后缀。

您链接到的特定搜索基于 ISP 域名,我不认为它使用相同的 DNSBL 接口。

Domains are in the "Domain Block List", not the SBL. Use dbl.spamhaus.org as the domain suffix.

The particular search you linked to is based on the ISP's domain name, and I don't believe it uses the same DNSBL interface.

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