Updating a DNS blacklist within seconds
Summary
In September 2006 Manuel Schmitt reports that manitu, together with Bert Ungerer of iX, is testing a live-fed variant of the NixSpam blacklist. Detected spam sources should then be queryable via DNS within seconds rather than after the next list sync. The test list runs under ix-new.dnsbl.manitu.net next to the existing ix.dnsbl.manitu.net, and fellow testers are welcome.
How a DNSBL answers
RFC 5782 describes the scheme that has become established since Dave Rand and Paul Vixie's Real-time Blackhole List of 1997. The mail server reverses the IP address of the sending host, appends the list domain and queries an A record: for 192.0.2.99 the query is 99.2.0.192 plus the list domain. An answer such as 127.0.0.2 means listed, no answer means not listed.
An optional TXT record gives the reason for the listing. Every DNSBL must contain an entry for 127.0.0.2 for testing.
Why seconds count
RFC 5782 advises matching a list's time to live and refresh to its rate of change: lists of observed spam sources change every few minutes and need short TTLs, whereas lists of dynamic dial-up addresses change slowly. Mail servers must respect the TTL.
Ideas
- A DNSBL distributes blocking information through fast, cacheable DNS queries.
- Live feeding shortens the time between spam detection and protecting other mail servers.
- Short TTL values are the precondition for live data to arrive.
- A separate test host name keeps experimental data apart from the existing production service.
Insights
- The value of a reputation list depends heavily on freshness and controlled error correction.
- Faster blocking also increases the damage of possible misclassifications.
Facts
- The existing list was reachable under ix.dnsbl.manitu.net.
- The test service used ix-new.dnsbl.manitu.net.
- Manuel Schmitt tested the live feed together with Bert Ungerer of iX.
- RFC 5782 requires a test entry for 127.0.0.2 in every IPv4 DNSBL.
References
- Manuel Schmitt on Hostblogger: original article (German)
- RFC 5782: DNS Blacklists and Whitelists (2010)
Remarks
- NixSpam ceased operation in January 2025; ix.dnsbl.manitu.net has returned no hits since.
Recommendations
- Measure latency, false positives and removal times separately.
- Before using a DNSBL, check that it answers the test entry 127.0.0.2.
- Run test and production zones independently and publish a fast appeal route.
Read the original article on Hostblogger
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.