Home / Blogs

IPv6 DNS Blacklists Reconsidered

John Levine

I opined about a year ago that DNS blacklists wouldn't work for mail that runs over IPv6 rather than IPv4. The reason is that IPv6 has such a huge range of addresses that spammers can easily send every message from a unique IP address, which means that recipient systems will fire off a unique set of DNSBL queries for every message, which will swamp DNS caches, since they won't be able to reuse cached results from previous queries like they can for IPv4 mail.

Now I'm much less sure this will be a problem, because it's not clear that DNSBL results benefit from caches now.

Large and small mail systems access DNSBLs differently. Large systems make arrangements with the DNSBL operators to download their own copies of the DNSBLs they use via rsync or something similar. Then they glom all of the DNSBLs together and typically run copies of rbldnsd on the same local networks as the mail servers so for each incoming message, the mail server can send a local query to rbldnsd and get back one response with all of the DNSBL information relevant to the message. For these systems, a DNS cache provides no benefit because getting the answer from rbldnsd is just as fast if not faster than getting it from a cache. I don't know whether they currently configure their systems not to use caches, but if they don't, it would be technically straightforward. In a world with IPv6 DNSBLs, this would all work exactly the same way, download the DNSBL with rsync and serve it locally with rbldnsd.

Small systems send ordinary DNS queries to the main servers for each DNSBL they use, typically via a local DNS cache. As far as I can tell, caches don't help these systems either, because there isn't enough repeat traffic from the same IP to reuse cached results. It is surprisingly hard to find trace data to test out this theory, but it seems to be true of traffic on my small (100K connections/day) system, and on the few others I've been able to ask. (If you are willing to provide mail server connection traces of timestamps and IP addresses, so I can do more testing, please let me know. Or I can provide test scripts you can run on your own data and see how well your DNSBL queries cache.)

This suggests that DNSBL clients, which are usually mail servers, will be able to use DNSBLs largely the same way they do now, perhaps with modest cache partitioning tweaks to tell the caches not to bother caching DNSBL query results. But that doesn't mean that there's no problems with IPv6 DNSBLs. In the next message, I'll look at problems facing DNSBL operators.

By John Levine, Author, Consultant & Speaker. More blog posts from John Levine can also be read here.

Related topics: DNS, Email, IPv6, Spam

WEEKLY WRAP — Get CircleID's Weekly Summary Report by Email:

Comments

Since an end user is supposed to Phil Howard  –  Apr 01, 2012 9:57 AM PST

Since an end user is supposed to be allocated a /64, shouldn't DNSBL queries be made only for the first 64 bits?  Of course that can be applied as an end user's entire network of many servers.  But shouldn't it really be that way, anyway?  Shouldn't a BL be based not on a specific unit of addressing or hardware, but on the end user?  I've already seen IPv4/19 networks entirely of spam sources.

Certainly there is less to cache if data is labeled by the first 64 bits, only.

When I get time to dig into email software, it was my intent to modify the DNSBL parts to also expand on the blocking, based on count of black hits and other means, and compare that to white volume.  This would be done not only on the /64 but on every shorter prefix sharing the same first reverse delegation.  Shorter networks would have a higher threshold, but not quite double (I'm thinking Fibonacci sequence).  The idea is to numerically carve out spammy networks.  At one threshold, do more content filtering or alter the filtering threshold.  At a second threshold, go straight to spam folder.  At a third threshold, reject during mail exchange.  At a fourth threshold, add to border router access list.

Since an end user is supposed to John Levine  –  Apr 01, 2012 11:39 AM PST

Since an end user is supposed to be allocated a /64, shouldn't DNSBL queries be made only for the first 64 bits?

Not really.  That's only a guideline, and some networks allocate a /56 or larger.  Also, at hosting centers, it'd be quite reasonable to assign a /64 to each machine or each rack and there'd be many customers within the same /64.

Certainly there is less to cache if data is labeled by the first 64 bits, only.

Not usefully less.  If you could probe one address per microsecond, it'd take about an hour to sweep through the 32 bit IPv4 address space, but 500,000 years to sweep a 64 bit address space.

To post comments, please login or create an account.

Related Blogs

Related News

Topics

Industry Updates – Sponsored Posts

Join Paul Vixie & Robert Edmonds at the Upcoming Distinguished Speaker Series

LogicBoxes Announces Automation Solutions for ccTLD

3 Questions to Ask Your DNS Host About DDoS

Introducing Our Special Edition Managed DNS Service for Top-Level Domain Operators

Afilias Partners With Internet Society to Sponsor Deploy360 ION Conference Series Through 2016

The Latest Internet Plague: Random Subdomain Attacks

Digging Deep Into DNS Data Discloses Damaging Domains

Nominum Announces Future Ready DNS

Non-English "IDN Email" Addresses Are Finally Working!

Video Interviews from ICANN 50 in London

Dyn Acquires Internet Intelligence Company, Renesys

Introducing getdns: a Modern, Extensible, Open Source API for the DNS

Why We Decided to Stop Offering Free Accounts

Tony Kirsch Announced As Head of Global Consulting of ARI Registry Services

24 Million Home Routers Expose ISPs to Massive DNS-Based DDoS Attacks

Dyn Acquires Managed DNS Provider Nettica

Why Managed DNS Means Secure DNS

SPECIAL: Video Interviews from NamesCon 2014 in Las Vegas

Rodney Joffe on Why DNS Has Become a Favorite Attack Vector

Motivated to Solve Problems at Verisign

Sponsored Topics

Verisign

Security

Sponsored by
Verisign
Minds + Machines

Top-Level Domains

Sponsored by
Minds + Machines
Afilias

DNS Security

Sponsored by
Afilias
dotMobi

Mobile

Sponsored by
dotMobi