如何通过域名查询Spamhaus的SBL?
我想查询 Spamhaus 的 SBL 使用域名。我知道这是可能的,因为这个 表格(按 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
域位于“域阻止列表”中,而不是 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.