IP
Is this IP on an email blacklist?
Query public DNS blocklists (DNSBL) for an IPv4 or IPv6 address and see which ones list it.
How to read the result
The header reads Listed on: 1 / 5: one list out of five that answered says the address is listed. Below it, each list gets its own row, named by the DNS zone that was queried.
| Field | What it means | What to do with it |
|---|---|---|
| Listed on | The first number: how many lists returned a listing for the address. | Zero is the goal. One listing deserves a look at that row; several point to an active problem. |
| Lists checked | The second number: how many lists gave a definite answer, listed or not. Lists that failed, timed out or answered with an error code are left out. | If it is lower than the number of rows, some results are Unknown. Run the check again later. |
A list row: No |
The list has no entry for the address. | Nothing to do for that list. |
| A list row: a reason or a code | The address is listed. The value is the explanation the list publishes in a TXT record, or the 127.0.0.x code when it publishes none. | Read the reason, fix the cause, then follow that list's removal process. Codes are decoded in the tables below. |
A list row: Unknown |
The list gave no usable answer: a timeout, a failure, or a reply that is not a listing. | Not a listing. Check again later. |
| Risk score | Locked. The 0 to 100 score the API's IP endpoint gives the address. | Needs a free account. See the risk score documentation. |
| Bulk CSV upload | Locked. Runs the IP endpoint over a CSV of up to 2,000,000 addresses. DNSBL queries are not part of it. | Needs a free account. |
| API access | Locked. POST /ip returns location, network type, flags and risk score for 1 credit per address. It does not query blocklists. |
Needs a free account, which includes 100 credits every month. |
How the check works
- The tool validates the address, IPv4 or IPv6.
- It builds one query name per list, as RFC 5782 specifies. For IPv4, the four octets are reversed and the list's zone is appended. For IPv6, the address is expanded to 32 hexadecimal nibbles, which are reversed the same way.
- Our own server runs every query in parallel, with its own resolver and a time limit per query. The queries do not go through a public resolver, because several lists refuse queries that arrive that way. Spamhaus, for example, documents that it answers queries made through public resolvers with the error code 127.255.255.254 instead of real data.
- Each answer is read the same way. No record for the name means not listed. An A record from 127.0.0.2 to 127.0.0.255 means listed, and the tool then fetches the list's TXT record for the reason. Any other answer, a failure or a timeout gives Unknown.
- The header counts the listings and the lists that answered definitely.
What the check cannot tell you:
- Why you were listed, beyond what the list says in its reason.
- Anything about lists that are not on the card. Each row is a list that was queried; there are many others.
- Whether your recipients use any of these lists. Each mail server picks its own.
- Whether a domain is blocklisted. Domain blocklists judge the links and domains inside messages, a separate system that takes a domain, not an IP address.
- Whether the listing policy is fair. A listing is one operator's decision under its own rules, not a verdict on you.
How a DNSBL query works
| Step | IPv4 | IPv6 |
|---|---|---|
| The address | 203.0.113.42 |
2001:db8::1 |
| Reversed | 42.113.0.203 |
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2 |
| The query, an A record | 42.113.0.203.bl.spamcop.net |
The reversed nibbles, then the zone |
| Not listed | No such name (NXDOMAIN) |
No such name |
| Listed | An address in 127.0.0.0/8, conventionally 127.0.0.2, plus a TXT record with the reason |
The same |
RFC 5782 also gives every list a built-in test. An IPv4 list must contain an entry for 127.0.0.2, queried as 2.0.0.127 plus the zone, and must not contain 127.0.0.1. An IPv6 list must contain ::FFFF:7F00:2 and must not contain ::FFFF:7F00:1. If the test entry is missing, the list is not answering normally.
How each answer is read
| What the list's DNS returns | What the card shows | Why |
|---|---|---|
| No such name, or no A record | No |
The address is not on the list. |
127.0.0.2 to 127.0.0.255 |
The TXT reason, or the code itself | A listing, by the convention of RFC 5782. |
127.0.0.1 |
Unknown |
RFC 5782 forbids lists from listing it, so it is not a valid listing. |
An error code such as 127.255.255.254 |
Unknown |
Some lists use this range to refuse or reject a query, not to list. |
| An ordinary public address | Unknown |
A resolver that replaces failures with its own answers. It is not the list speaking. |
| A failure or a timeout | Unknown |
The list could not be reached within the time limit. |
Return codes documented by the lists
Lists that use a single code are simple: 127.0.0.2 means listed. Others encode a category in the last octet. Here is what the lists themselves document.
| List and zone | What a listing means | Removal |
|---|---|---|
SpamCop, bl.spamcop.net |
127.0.0.2: the address sent mail that was reported as spam to SpamCop. |
Automatic, 24 hours after the last report. SpamCop itself recommends filtering or tagging mail on this list rather than rejecting it. |
PSBL, psbl.surriel.com |
The address sent mail to the list's spam traps, the mail was not recognized as legitimate, and the address is not a known mail server. | Anyone can remove an address through the PSBL website. Addresses also expire after a few weeks without spam-trap hits. |
DroneBL, dnsbl.dronebl.org |
The last octet gives the class of threat. See the table below. | Request it on the DroneBL website once the device is cleaned. |
DroneBL classes, from its own documentation:
| Code | Class | Code | Class |
|---|---|---|---|
127.0.0.3 |
IRC spam drone | 127.0.0.12 |
Open DNS resolver |
127.0.0.5 |
Bottler | 127.0.0.13 |
Automated dictionary attacks |
127.0.0.6 |
Unknown worm or spambot | 127.0.0.14 |
Open WINGATE proxy |
127.0.0.7 |
DDoS drone | 127.0.0.15 |
Compromised router or gateway |
127.0.0.8 |
Open SOCKS proxy | 127.0.0.16 |
Autorooting worms |
127.0.0.9 |
Open HTTP proxy | 127.0.0.17 |
Automatically determined botnet IPs |
127.0.0.10 |
Proxychain | 127.0.0.18 |
Possibly compromised DNS or MX type hostname detected on IRC |
127.0.0.11 |
Web page proxy | 127.0.0.19 |
Abused VPN service |
DroneBL also uses 127.0.0.255 for an uncategorized threat class.
Decoding a Spamhaus code from a bounce
Spamhaus ZEN is not queried by this tool, but its codes appear in rejection messages. Its documentation lists them as follows.
| Code | Meaning |
|---|---|
127.0.0.2 |
SBL: Spamhaus SBL data |
127.0.0.3 |
SBL: Spamhaus CSS data |
127.0.0.4 |
XBL: CBL data, addresses showing signs of infected or exploited machines |
127.0.0.9 |
SBL: Spamhaus DROP data |
127.0.0.10 |
PBL: ranges maintained by the internet provider |
127.0.0.11 |
PBL: ranges maintained by Spamhaus |
127.255.255.252 |
Error: typo in the list name |
127.255.255.254 |
Error: query made through a public or open resolver |
127.255.255.255 |
Error: excessive number of queries |
The three error codes are not listings. Spamhaus warns that some mail servers mistakenly reject all mail because of them, which is a configuration problem on the receiving side.
Getting a mail server's address off a blocklist
- Confirm the address is yours and sends mail. If it is a shared address from your hosting provider or sending platform, open a ticket with them instead: only they can fix the source.
- Read the reason in each listed row. Spam-trap hits point to old or purchased addresses in your mailing list. Botnet, proxy or worm classes point to an infected device or an open service behind the address.
- Fix the cause. Clean or isolate infected machines, close open relays and proxies, reset compromised account passwords, add a CAPTCHA to abused web forms, and remove addresses that never engaged from your mailing list.
- Set reverse DNS. Check the address's PTR record with the DNS lookup tool and make sure the name it returns resolves back to the same address. Google's sender guidelines require valid forward and reverse DNS for sending addresses.
- Authenticate your mail with SPF, DKIM and DMARC, so receivers can tell your mail from forgeries. The SPF, DKIM and DMARC guide walks through the setup.
- Request removal through each list's own process, or wait for automatic expiry where the list works that way.
- Run this check again. Removal can take a while to reach every DNS server of a list, so a listing can linger briefly after the list's site shows you as clean.
Preventing the next listing
Most of the causes above can be closed for good. These habits keep an address off spam-trap and compromise lists:
- Send only to people who asked. Confirmed opt-in, where a subscriber clicks a link before you send anything else, keeps mistyped and invented addresses out of your list.
- Remove addresses that bounce. Some spam traps are old mailboxes that stopped accepting mail and were later reactivated to catch senders who never clean their lists. Verify a list before a campaign; the email verifier shows the check, and the list cleaning guide covers it at scale.
- Split your streams. Send password resets and receipts from a different address or subdomain than newsletters, so a marketing problem cannot block account emails.
- Limit outbound port 25. On an office network, let only your mail server connect to port 25 on the internet; an infected laptop then cannot send spam directly from your address.
- Protect web forms. A contact form that emails its content to an address the visitor chooses can be found and abused to send spam. Fix the recipient on the server side and add a CAPTCHA.
- Watch for changes. Run this check after every change to your mail setup, and read DMARC aggregate reports, which show any server sending as your domain.
Same check through the API
One HTTPS call, one credit. The response below is the real schema returned by the API.
curl https://api.qelka.com/v1/ip \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"ip":"8.8.8.8"}'const response = await fetch("https://api.qelka.com/v1/ip", {
method: "POST",
headers: {
Authorization: "Bearer sk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
ip: "8.8.8.8",
}),
});
const result = await response.json();{
"id": "lkp_01M84QZDZHEMMVZCGDFD9ZD53H",
"object": "ip",
"input": "8.8.8.8",
"version": 4,
"country": {
"code": "US",
"name": "United States"
},
"region": "California",
"city": "Mountain View",
"asn": {
"number": 15169,
"org": "Google LLC",
"type": "hosting"
},
"flags": {
"tor": false,
"vpn": false,
"proxy": false,
"datacenter": true
},
"risk": {
"score": 35,
"level": "medium"
},
"credits_used": 1,
"cached": false
}Bulk and pricing
- Upload a CSV of up to 2,000,000 rows from the dashboard or the API, pick the column, get the results back as a CSV.
- Every check costs 1 credit, live phone lookups cost 3. Cached results are billed the same way; calls that fail upstream are not billed.
- The free plan includes 100 credits every month. Paid plans start at $29 for 10,000 credits.
Frequently asked questions
What is an IP blacklist?
Why is my IP address blacklisted?
How do I get my IP address removed from a blacklist?
Will a listing stop my email from being delivered?
What does 127.0.0.2 mean in a blacklist result?
Why do some lists show Unknown?
Why is my home IP address on a blocklist?
How long does a blacklist listing last?
Does changing my IP address fix a listing?
Can IPv6 addresses be blacklisted?
Why is a shared server's IP listed when I sent no spam?
Why don't I see the list my bounce message mentioned?
Do blocklists matter outside email?
Does the API include blacklist results?
What is a spam trap?
How often should I check my mail server's IP address?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.