Skip to content
AdminKit

Why is my IP address blacklisted, and how do I get delisted?

Your IP is blacklisted because a spam trap, malware sensor or abuse report tied suspicious traffic back to it — often from a compromised device or a neighbour on a shared IP, not you personally. AdminKit walks through checking which list flagged you, fixing the cause, then requesting removal.

By AdminKit team, Netbase JSC · Updated

Key takeaways

  • A DNS blacklist (DNSBL) is a list of IP addresses linked to spam, malware or abuse, queried with an ordinary DNS lookup. Listing is automated and says nothing about who you are.
  • The answer code tells you which list and why. On Spamhaus, 127.0.0.2 is SBL, 127.0.0.4 is XBL (compromised hosts), 127.0.0.10 and 127.0.0.11 are PBL, and 127.255.255.x codes are errors, not listings.
  • A home or mobile IP on the Spamhaus PBL is expected: that list marks end-user addresses that should not send mail directly. It isn’t evidence of abuse.
  • Fix the cause before you ask for removal. Otherwise the same device or server gets the address listed again.
  • On a shared address (CGNAT, shared hosting, mobile data), the listing may come from another customer, and the lasting fix is usually with your provider.

How do DNS blacklists actually work?

A DNS blacklist (DNSBL) is a published list of IP addresses associated with spam, malware command-and-control, or other abusive traffic, queried over ordinary DNS the way RFC 5782 (also on the IETF Datatracker) describes: a mail server or filter asks “is 203.0.113.5 on this list?” by looking up a specially-formatted domain name, and gets back a yes-or-no answer in milliseconds. Dozens of DNSBLs exist, run by different organizations with different rules — some list an IP after a handful of spam-trap hits, others only after sustained abuse or a confirmed malware infection.

The specially-formatted name is the IP address with its four octets reversed, followed by the list’s zone. A listed address answers with an A record in 127.0.0.0/8, and RFC 5782 says lists should also publish a TXT record that describes the reason. An address that isn’t listed returns NXDOMAIN (no such name). For example, to check the documentation address 203.0.113.5 against Spamhaus ZEN, run this from your own network’s resolver:

dig +short 5.113.0.203.zen.spamhaus.org        # any 127.0.0.x answer = listed
dig +short TXT 5.113.0.203.zen.spamhaus.org    # the list's reason text, if any

IPv6 lists work the same way, but RFC 5782 reverses all 32 hex nibbles of the address instead of four octets.

Nothing about this process is personal. The systems behind a DNSBL are automated: they watch traffic hit spam traps (email addresses that should never receive mail, so any message to one is almost certainly spam), honeypots, or abuse reports, and they list the source IP without knowing or caring who operates it. A blacklist entry is a reputation judgment about real traffic, which is a different and less fundamental problem than an address that should never appear as a source at all, the case covered by bogon address.

Why does an IP get listed?

  • A compromised device on your network sending spam or scanning traffic without your knowledge — this is the most common cause on home and small-office connections.
  • An open relay — a misconfigured mail server that lets outside senders route spam through it.
  • Backscatter — a flood of bounce messages generated by other servers after a spammer forged your domain as the envelope sender in their spam run, not anything your own server did. See our explainer on email bounces and backscatter for how to tell this apart from abuse you’re actually responsible for.
  • Sharing an IP with other customers. On shared hosting, a VPS provider’s IP range, or an ISP that uses Carrier-Grade NAT, one customer’s abuse can get the whole shared IP listed — see our CGNAT guide for why this happens and how to tell if it applies to you.
  • A newly-assigned IP with bad history. IP addresses get reassigned; if the previous holder was abusive, some lists take time to “forget” that reputation. A Whois lookup with AdminKit’s whois tool shows when the address block was allocated to your provider, which helps you judge whether a bad reputation predates your own use of the IP.
  • Aggressive but legitimate behavior, such as a security scanner or a marketing tool sending high volumes of connection attempts that pattern-match abuse.
  • High spam-complaint rates from bulk mail. A recipient who can’t find an easy way to unsubscribe often clicks “report spam” instead, and complaint rate is one of the reputation signals that feeds into a listing — publishing a List-Unsubscribe header gives mail clients a one-click opt-out that heads this off before it starts. Some mailbox providers also forward a copy of each spam complaint straight back to the sender’s abuse address as an ARF report, through a classic feedback-loop (FBL) program, which is a faster per-message signal than waiting to notice a DNSBL listing after the fact.
  • The address is an end-user range that shouldn’t send mail directly at all. That is a policy listing, not an abuse listing, and it gets its own section below.

Which list flagged you, and what does the answer code mean?

AdminKit’s blacklist check page shows how to query a DNSBL yourself with a single DNS lookup. AdminKit does not run blocklist lookups for you: the public lists’ terms restrict free automated or commercial querying, so the DNSBL check in AdminKit’s API stays switched off until a licensed feed is in place. The manual lookup above, run from your own resolver, gives you the same answer. For the most widely used lists, start with Spamhaus’s own Blocklist lookup for the specific IP in question. Note the specific list name — removal processes are list-specific, and a few list operators also publish a short reason code or category with the listing (spam source, malware, open proxy, and so on), which tells you what to fix before you request removal.

For Spamhaus’s combined ZEN zone, the Spamhaus DNSBL usage FAQ documents what each answer means:

AnswerListWhat it means for you
127.0.0.2SBLThe address is on the Spamhaus Block List (SBL data)
127.0.0.3SBL (CSS data)Listed from Spamhaus CSS data, which is published in the SBL zone
127.0.0.4XBLSigns of a compromised or infected machine or device using the IP
127.0.0.10 / 127.0.0.11PBLAn end-user range that shouldn’t send mail directly (ISP- or Spamhaus-maintained)
127.255.255.252 / .254 / .255AnyAn error: a typo in the zone name, a query through a public or open resolver, or too many queries. Not a listing.

The 127.255.255.254 row catches many people out. Spamhaus answers queries that arrive through a public or open resolver with that error code, so a lookup sent through one comes back with a 127.x answer that looks like a listing at first glance. Run the lookup from your ISP’s resolver or your own network’s DNS server instead.

You can also confirm your resolver gives correct DNSBL answers at all. RFC 5782 requires every IPv4 list to hold a test entry for 127.0.0.2 and never to list 127.0.0.1, and Spamhaus suggests checking both. The commands below are adapted from Spamhaus’s published example; the test entry may return a different set of codes:

$ dig +short 2.0.0.127.zen.spamhaus.org
127.0.0.10
127.0.0.4
127.0.0.2
$ dig +short 1.0.0.127.zen.spamhaus.org
$                      # no output: the name does not exist (NXDOMAIN)

If the test entry doesn’t answer, or 127.0.0.1 does, your resolver’s DNSBL answers can’t be trusted, whatever they say about your own IP.

If you manage a domain and suspect the problem is on the mail-sending side specifically, also run MX lookup to confirm which servers are actually sending mail for your domain — sometimes a forgotten or misconfigured server is the real source.

Why is a home or mobile IP on the Spamhaus PBL?

The Spamhaus Policy Blocklist is a list of end-user IP ranges “from which email should never be sent directly to the final destination”. Spamhaus is explicit that these addresses “are not necessarily ‘bad’ - simply, they should never be sending email”, and that many ranges are added and maintained by the networks that own them. A home broadband or mobile address showing 127.0.0.10 or 127.0.0.11 is therefore normal. Your mail app sends through your provider’s mail server, which has its own address and reputation, so the PBL listing doesn’t affect it.

It only matters if you run a mail server on that connection and send directly to other servers. Spamhaus’s removal rules say that IPs “that do not run an outbound email server are not appropriate for removal”, and a single-IP exclusion expires after one year. For most people the better fix is to send through a smarthost or a mail provider rather than to delist a residential address.

An XBL answer (127.0.0.4) is different. The Exploits Blocklist lists addresses “exhibiting signs of compromise”, which includes malware on a device and “free VPN” type apps that use the device as a proxy. That points at a device on your network, which is where the next section starts.

How do you find and fix the underlying cause?

Delisting without fixing the cause almost always leads to a repeat listing within days. Work through this in order:

  1. Check for a compromised device. Look at your router’s connected-device list for anything unfamiliar, and check whether any device is generating unusual outbound traffic. On a home network, smart cameras, old routers with factory-default passwords, and outdated IoT devices are common culprits.
  2. Audit your mail server configuration. Confirm it isn’t operating as an open relay (accepting and forwarding mail from senders it shouldn’t) and that SPF, DKIM, and DMARC are correctly set up, since a missing or broken DMARC policy can make it easier for spoofed mail to appear to come from your domain.
  3. Rule out a shared-IP cause. Run what is my IP: it shows a hint when your address looks shared, either because it sits in the CGNAT range or because the network belongs to a mobile carrier. Shared hosting won’t trigger that hint, so check with your host as well. If the address is shared, the abuse may not be traceable to anything on your end at all — in that case, delisting the specific IP may only be a temporary fix until your ISP reassigns you a different shared address.
  4. Change any exposed default credentials. Devices and routers with unchanged default admin passwords are a common entry point for the malware that turns a device into a spam or attack source.
Answer you gotMost likely causeWhere to start
XBL (127.0.0.4)An infected device or proxy app on your networkSteps 1 and 4, then request removal
SBL (127.0.0.2)Spam sent from, or attributed to, the addressStep 2 if you run mail; ask your provider if you don’t
PBL (127.0.0.10 / .11)Policy: an end-user range sending mail directlySend through a mail provider or smarthost
A listing on a shared addressAnother customer on the same IPStep 3, then talk to your ISP or host

How do you request delisting?

Once you’re confident the cause is fixed:

  • For Spamhaus-listed IPs, use the Spamhaus Blocklist lookup to check your IP and follow the listing-specific removal instructions shown there.
  • For other DNSBLs, whichever lookup flagged you typically names the list operator; most publish their own removal-request page, often requiring you to confirm the IP is no longer sending abusive traffic. Large mail providers also keep their own block lists: Microsoft’s delist guide explains that a bounce with a 5.7.606-649 “banned sending IP” code means the IP is on Microsoft 365’s blocked senders list, which you request removal from through its delist portal, and that removal can take up to 24 hours or longer.
  • Keep evidence of what you fixed (a screenshot of a factory-reset device, a corrected SPF record) in case a list operator asks for details.
  • Be patient with automated lists — many remove an IP on their own once they stop observing bad traffic, sometimes faster than a manual request is processed.

What if your IP is shared (CGNAT, hosting, mobile data)?

If what is my IP shows signs of a shared address, delisting that specific IP helps only until the next customer sharing it causes the same problem. In that situation, the most durable fix is usually on the ISP or hosting side (requesting a dedicated IP, or asking the provider to address the abusive customer), not something you can fully resolve yourself.

ConnectionWho else uses the addressLasting fix
Home broadband behind CGNATOther customers of the same ISPAsk for a dedicated public IP
Mobile dataMany subscribers through the carrier’s gatewayDon’t send mail directly from it; use a mail provider
Shared web hosting or a VPS rangeOther sites on the same server or rangeAsk the host for a clean or dedicated IP, or move providers
Dedicated business lineOnly youThe cause is on your network: Steps 1 to 4

Understanding this distinction up front — “is this address really mine, or shared” — saves time that would otherwise go into troubleshooting a device that was never the cause.

How do you keep this from happening again?

A one-time check tells you today’s status; it won’t tell you if the IP gets listed again next month after you’ve moved on. The practical approach is a recurring DNSBL lookup (see the manual method above), especially after any change to your network’s devices. To stop an infected device calling home before it causes a listing, Netbase builds and runs Protective DNS for your network as a custom engagement — a filtering resolver that blocks known-malicious and command-and-control domains per device and logs every block; talk to our team about it.

Where are the list-specific removal procedures?

The steps above are general; once you know which list flagged you, the actual removal form and what it expects differs by operator — see how to get delisted from Spamhaus and how to get delisted from the Barracuda Reputation Block List for two common ones. A bounce naming Microsoft 365 or Outlook.com specifically is a different, mailbox-provider-specific process rather than a DNSBL listing — see how to get delisted from Microsoft/Outlook for that one. This guide is part of AdminKit’s email authentication cluster of mail-deliverability guides and tools.

This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.

Frequently asked questions

How long does it take to get delisted?

It depends on the list. Some DNSBLs remove an IP automatically once their systems stop seeing bad traffic from it; others need a removal request, and each operator publishes its own process and timing. Spamhaus's lookup page shows the removal path for each of its lists. A cause that isn't fixed tends to bring the listing back, however quickly it was removed.

Will I get blacklisted again after delisting?

Yes, if the underlying cause isn't fixed. Delisting removes the current flag; it doesn't stop the same compromised device or misconfigured server from getting you listed again within days.

Does a blacklisted IP mean my computer has a virus?

Not necessarily. On a home or small-office connection it's often a different device sharing the IP, a compromised IoT gadget, or an open relay on your mail server — not the machine you're using to check.

Can I get blacklisted for something I didn't do?

Yes. If your ISP uses Carrier-Grade NAT (CGNAT) or you're on shared hosting, your public IP can be shared with dozens or hundreds of other customers — one of them causing abuse can get the shared IP listed, with nothing you did contributing to it.

Is one blacklist enough to ruin my email deliverability?

It depends on the list and the receiving mail server. Major receivers (Gmail, Microsoft, Yahoo) run their own reputation systems and don't necessarily block on every third-party DNSBL hit, but widely-used lists like Spamhaus's do get checked by a large share of mail servers worldwide.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

Talk to an expert

Huy Nguyen (David), Founder & CEO, Netbase JSC

Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.