A Domain Name System blocklist (DNSBL), historically referred to as a Real-time Blackhole List (RBL), is a database used to identify IP addresses or domain names associated with electronic spam, malware, phishing, or other forms of malicious network activity. These lists are published via the Domain Name System (DNS), allowing mail servers and security appliances to query them in real-time to determine if incoming traffic originates from a known problematic source.
Mechanism and Operation
The DNSBL functions by utilizing the standard DNS protocol to distribute reputation data. When a server receives a connection request from a specific IP address, it performs a reverse DNS look-up against a chosen blocklist provider. The query typically involves reversing the octets of the IP address and prepending them to the provider's domain name.
If the IP address is listed, the DNSBL server returns a response code, usually in the 127.0.0.0/8 loopback range. Different return codes may signify different reasons for the listing, such as the IP being a known open relay, a hijacked host, or a dedicated spam-sending server. If the IP is not listed, the DNS server typically returns an "NXDOMAIN" (Non-Existent Domain) error, indicating that the source is not currently categorized as malicious by that specific list.
History and Development
The first DNSBL was the Real-time Blackhole List, created in 1997 by Paul Vixie and Eric Ziegast as part of the Mail Abuse Prevention System (MAPS). It was initially developed to help network administrators voluntarily block traffic from networks that were perceived as unfriendly to the internet's infrastructure, specifically those that allowed the unhindered transmission of spam.
The effectiveness of the DNS protocol for this purpose led to the proliferation of various lists managed by commercial entities, non-profit organizations, and individual volunteers. In 2010, the IETF published RFC 5782, which standardized the way DNSBLs should be structured and queried to ensure interoperability across different mail transfer agents (MTAs) and security software.
Categories of Blocklists
While the term is often used broadly, DNS-based reputation lists generally fall into two categories:
- IP-based Blocklists: These identify the numerical addresses of servers or network ranges associated with undesirable activity. They are most commonly used at the connection stage of an SMTP (Simple Mail Transfer Protocol) session.
- Domain-based Blocklists (SURBL/URIBL): These identify domain names rather than IP addresses. They are frequently used to scan the body of an email or a web request for URLs that lead to known malicious or "spamvertised" websites.
Criteria and Accuracy
Each DNSBL provider maintains its own set of criteria for adding or removing entries. Common reasons for listing include:
- Detection of "spamtraps" (email addresses created solely to catch unsolicited mail).
- Reports of malicious activity from trusted users or automated honeypots.
- Technical configurations that facilitate abuse, such as open proxies or improperly secured mail relays.
The accuracy of a DNSBL depends on its maintenance frequency and the transparency of its delisting process. False positives—where legitimate servers are incorrectly listed—can occur, making the selection of reliable DNSBL providers a critical task for network administrators.