# DNSBL

What is a DNSBL?

A DNSBL (DNS-based blocklist) is a list of IP addresses or domain names known for sending spam or other abuse, published through [DNS](/glossary/dns) so any mail server can look a sender up with an ordinary query. Mail servers and spam filters query them on incoming mail to reject, flag or score messages from listed senders.

## How it works

For an IPv4 address, the four parts are reversed and the list's own domain is added after them. To check 192.0.2.99 against a list at `bad.example.com`, a mail server asks for the A record of this name:

```text
99.2.0.192.bad.example.com
```

If the address is not listed, there is no record for that name. If it is listed, the answer is an address in the 127.0.0.0/8 range, by convention 127.0.0.2, and the list usually publishes a TXT record with the reason as well. That reason often ends up in the bounce message. RFC 5782 requires every IPv4 list to contain a test entry for 127.0.0.2, so you can confirm a list is answering.

Lists of domain names work the same way, with the domain in place of the reversed address, for example `invalid.edu.doms.example.net`. Some of them check the domains that appear in links inside a message rather than the sender.

## Why it matters

Each list sets its own rules for what gets listed, and each mail provider chooses which lists to consult and how much weight to give them. A listing on one widely used list can be enough for mail from your domain to bounce or land in spam at many recipients at once, which hurts your [email deliverability](/glossary/email-deliverability).

## What can go wrong

- An account on your server is compromised and used to send spam, and the server's IP gets listed.
- A contact form or newsletter signup is abused to send mail to people who never asked for it.
- You share an IP address with other customers of a host or mail service, and their spam gets the shared address listed.
- A hacked page on your site hosts phishing, and the domain itself lands on a domain blocklist.

## Check it

The [Blocklist checker](/tools/blocklist-checker) tests a domain and its IP against widely used security and email blocklists such as Barracuda, SpamCop and SURBL. It gives a one-time reading, so it is worth running when mail from the domain starts bouncing or landing in spam.

Read this definition in a browser: https://ranetrace.com/glossary/dnsbl
