Home › Guides

What Is a DNSBL (RBL)? How DNS Blacklists Work

Published 2026-11-03 / Updated 2026-11-03 / By Yuki Nakazawa

A DNSBL (DNS-based blacklist, also called a DNS blocklist or RBL) is a list of IP addresses or domain names that a list operator considers a source of spam or abuse, published so that anyone can check it with an ordinary DNS lookup. Mail servers look up each connecting sender in one or more DNSBLs and then reject the message, accept it, or add the result to a spam score.

This guide explains how a DNSBL lookup works (reversed IP addresses, A and TXT records, IPv6 nibble format), the difference between IP-based and domain-based lists, how receivers actually use the answers, how blacklists differ from whitelists, why addresses get listed, and where a listing fits when your email is not being delivered. It is based on RFC 5782 and the official documentation of major list operators as of November 2026.

Check for free whether your domain or IP address is on any of about 345 blacklists.

What DNSBL and RBL mean

RFC 5782, "DNS Blacklists and Whitelists," uses the umbrella term DNSxL for a DNS zone whose records identify hosts on a list. A blacklist is a DNSBL; a whitelist is a DNSWL. The two are built the same way. Only the meaning a receiver assigns to a match is different.

RBL stands for Real-time Blackhole List. According to the RFC, the first list of this kind was started in 1997 and became known by that name. Strictly speaking, RBL refers to that original list and its descendant, and the RFC notes the term is a registered service mark in the United States. In everyday use, though, "RBL" and "DNSBL" are used almost interchangeably, so "what is an RBL" and "what is a DNSBL" are effectively the same question.

RFC 5782 is an Informational document, not an Internet standard. It was produced by the IRTF Anti-Spam Research Group and represents that group's consensus on practices that improve interoperability between DNS blacklists and whitelists. It does not describe or recommend policies for adding or removing addresses; the RFC expects that to be covered in a separate document. In practice every operator sets its own listing and delisting policy.

How a DNSBL lookup works

A DNSBL lookup is a normal DNS query, so a manual check needs no special software: anything that can resolve a name can query a list. List operators may set usage terms, though. Spamhaus's public servers, for example, are free only for low-volume non-commercial use, and queries through public resolvers are not answered reliably (see below).

IPv4: reverse the address and append the zone

For an IPv4 address, write the four octets in reverse order and append the list's zone name. The structure is borrowed from reverse DNS. RFC 5782's example checks 192.0.2.99 against a list at bad.example.com by looking up:

99.2.0.192.bad.example.com

The A record says "listed," the TXT record says why

From a terminal (the zone here is a placeholder):

dig +short 99.2.0.192.bad.example.com A
dig +short 99.2.0.192.bad.example.com TXT

Test entries

RFC 5782 requires IPv4 lists to contain an entry for 127.0.0.2 and not to contain one for 127.0.0.1. Clients are expected to check these test entries before trusting a zone, and not to use a zone that answers them incorrectly.

IPv6: the nibble format

An IPv6 address is written out in full as 32 hexadecimal digits, then reversed one digit (one nibble) at a time, with a dot between each, followed by the list's zone. The RFC's example, for 2001:db8:1:2:3:4:567:89ab on ugly.example.com:

b.a.9.8.7.6.5.0.4.0.0.0.3.0.0.0.2.0.0.0.1.0.0.0.8.b.d.0.1.0.0.2.ugly.example.com

IPv6 lists must contain the test entry ::FFFF:7F00:2 (127.0.0.2 as an IPv4-mapped address) and must not contain ::FFFF:7F00:1. Not every list supports IPv6, so check the operator's documentation before relying on an IPv6 lookup.

IP-based and domain-based lists

Lists come in two broad kinds, depending on what they contain.

TypeName looked upWhat receivers usually check
IP-basedReversed IP address plus the zoneThe IP of the connecting server; IPs found in Received header fields
Domain-based (RHSBL)Domain name plus the zoneThe HELO name, the MAIL FROM domain, domains in links in the message body

In RFC 5782's domain example, invalid.edu is checked against doms.example.net by looking up invalid.edu.doms.example.net. Domain-based lists sometimes go by the name RHSBL (right-hand-side blacklist). Their test entries use reserved names: the list must contain TEST and must not contain INVALID.

The Spamhaus Domain Blocklist (dbl.spamhaus.org) is a widely used example, and its documentation makes a few practical points:

The practical consequence: a clean sending IP does not guarantee delivery. A listed sending domain, or a listed domain linked in the message, can still cause a block.

How receiving servers use DNSBLs

RFC 5782 describes the typical setup. A mail server checks a configured set of DNSxLs on every incoming SMTP connection. A blacklist hit leads it to reject the connection; a whitelist hit leads it to accept. Alternatively, the results feed a scoring function that weighs them together with other signals. Filters that run after the message is received usually pull the IPs to test from the Received header fields or from URIs in the body.

Reject or score?

That choice belongs to the receiver. SpamCop's own FAQ calls its list an aggressive tool and recommends tagging or diverting suspected spam, or using the list as one factor in a score, rather than rejecting mail outright. It describes rejection settings as information for administrators who cannot use a more subtle approach.

Pitfalls receivers are warned about

This is one reason two checking tools can disagree about the same address: they may be asking through different resolvers.

Blacklists vs whitelists (DNSBL vs DNSWL)

A DNSBL and a DNSWL are queried the same way, but a match means the opposite. Per RFC 5782, network managers typically use DNSBLs to block traffic and DNSWLs to accept traffic preferentially. The same list can even serve as a blacklist in one context and a whitelist in another.

AspectDNSBL (blacklist)DNSWL (whitelist)
PurposeReject or penalizeAccept or give credit
TXT recordShould explain the listingLess useful, since SMTP cannot tell a client why it was accepted; some lists publish one anyway
A record valueListed or not, and which sublistCan carry a reputation or confidence score

dnswl.org (list.dnswl.org) is an example of a whitelist. Its documentation says answers take the form 127.0.x.y, where x is a category and y a trust level from 0 (none) to 3 (high). It suggests letting listed hosts skip greylisting and blacklist checks, letting medium- and high-trust hosts skip spam filtering, and never skipping virus scanning. How much a whitelist entry exempts is still the receiver's decision.

Common reasons an IP or domain gets listed

Each operator sets its own criteria, and many keep the exact triggers private. The reasons below come from the operators' published documentation.

Where DNSBLs fit when email is not delivered

A DNSBL listing is one possible cause of undelivered mail, not the only one. Wrong addresses, full mailboxes, recipient-side problems and missing authentication can also cause bounces. When a list is involved, the bounce message often names it or includes a lookup URL.

  1. Read the bounce. Note the reply code and any list name or URL in the text.
  2. Identify your sending IP and domain. Use the Received lines in the headers, or ask whoever runs the server.
  3. Check the major lists at once. Use the blacklist checker, then confirm any hit on the operator's own lookup page.
  4. Fix the cause. Work through the causes above. Requests made before the cause is fixed usually end in relisting.
  5. Follow that operator's process. Some lists expire on their own, some take a removal request, and some only accept requests from the network owner. The decision to delist always belongs to the list operator, and a request is not a promise of removal.

Receivers also run their own filtering, so mail may not flow again the moment a listing ends. For the full troubleshooting sequence, see email blacklisted: how to read the bounce, and for authentication, SPF, DKIM and DMARC setup. If you cannot pin down the cause yourself, you can ask us for help.

If you would rather not handle this yourself

We introduce providers who take on delisting requests, consulting and advice (from JPY 50,000). Delisting is decided by each list operator and cannot be promised.

Get help

This site may receive a referral fee from listed providers. About

FAQ

Is an RBL the same thing as a DNSBL?

In practice, yes. RBL was the name of the original list started in 1997, and RFC 5782 uses DNSBL as the general term. Today most people use the two words interchangeably.

A lookup returned 127.0.0.2. What does that mean?

By the convention described in RFC 5782, 127.0.0.2 means the address is listed. Combined lists use different values for different sublists, and some values, such as Spamhaus's 127.255.255.x codes, are errors rather than listings. Check the operator's documentation for the exact meaning.

If I am on a DNSBL, will all my email bounce?

Not necessarily. Each receiver chooses which lists to use and whether to reject on a hit or only add to a spam score. That is why mail to some recipients can fail while mail to others still arrives.

Can IPv6 addresses be checked against a DNSBL?

RFC 5782 defines an IPv6 format in which the full address is reversed one hex digit at a time. Not every list supports IPv6, so check whether the list you care about supports IPv6.

Does being on a whitelist mean my mail will never be filtered?

No. A whitelist entry is a signal the receiver may use as it sees fit. dnswl.org, for example, suggests skipping spam filtering only for medium- and high-trust entries and never skipping virus scanning.

Official pages used

The facts in this article were checked against the official pages below at the time of publication. Policies and behavior change without notice, so check the official pages before relying on anything important.

Related guides

DNSBL Return Codes Explained: 127.0.0.2, 127.255.255.x and NXDOMAIN

How to read DNSBL return codes: what 127.0.0.2 means under RFC 5782, codes for Spamhaus, SpamCop and UCEPROTECT, error codes, and NXDOMAIN vs SERVFAIL.

Email Blacklisted? How to Read the Bounce and Get Off a Blacklist

Email blocked by a blacklist? Read the bounce code, check the causes in the right order, see which listings matter, and request removal the right way.

Spamhaus Removal: How to Get Your IP or Domain Delisted

Listed on Spamhaus? Find out which list you are on (ZEN, PBL, XBL, CSS, SBL, DBL), what the return codes mean, and the right delisting path for each.

All guides →