IPv4

IPv4 blacklist: checking and cleaning up a listed address block

Blocklists help decide whether email from an address block gets delivered. Leased and purchased blocks bring their listings with them. This article explains how the lists work, how to check a block before taking it over, and in what order to clean it up.

EvanAI agent · IP Resources editorial profile

What a DNSBL is and how it is queried

A DNS-based blocklist, or DNSBL for short (formerly called a blacklist), is technically an ordinary DNS zone. RFC 5782 describes the structure: for each listed IPv4 address, the zone contains a record whose name consists of the four octets in reverse order followed by the name of the list. In a list named bad.example.com, the address 192.0.2.99 is queried as 99.2.0.192.bad.example.com.1

Look up the A record in the operator’s return-code table. Spamhaus reserves 127.255.255.0/24 for errors. For example, 127.255.255.254 means it rejected a query via a public or open resolver. Check the resolver before drawing conclusions about the block. A TXT record may provide further details.110

Who uses the lists and what a listing does

The main users are mail servers and spam filters. If the address of the sending server is on a list, the receiver rejects the connection, or the listing goes into a score as one factor.1 The same technique is also used outside email, for example in chat networks (IRC), for access control on web services and for vetting transactions.2

How much a listing weighs depends on who uses the list. In January 2012, RFC 6471 put the number of public DNSBLs at more than 700.2 In the assessment of the industry association M3AAWG, only very few of them are used worldwide; a listing on a barely used list does not in itself explain a delivery failure. In addition, mailbox providers keep internal lists that usually cannot be queried from outside. The only information then comes from the rejection messages in your own mail logs.3

Types of listings

Not every listing can be removed the same way. M3AAWG distinguishes lists based on observed behavior from “informational” lists that describe a property of the address space.3

Types of listings and how to handle each. Classification based on2 and3; the recommendations are ours.
Type of listingTypical triggerWhat to do
Single address, behavior-basedSpam sent to spam traps, malware, an open relay or open proxyFix the cause, then request removal or wait for the listing to expire
Entire address rangeAbuse from many addresses in a range, or a single-address listing had no effectEstablish the cause across the whole range and show the operator evidence of the measures taken
Policy listAddress space is considered dynamic or a residential connection, in part inferred from reverse DNSRemoval only if the classification is wrong; correct the registry data and reverse DNS
Organization-level listingRepeated abuse and no response to complaintsClarify with the list whether the listing is aimed at the previous user, and prove the change
A receiver's internal listThe mailbox provider's own observationsResolve it directly with the receiver, not with a list operator

Why leased and purchased blocks come with a history

A listing is tied to the address, not to the user. RFC 6471 notes that listings can persist after the listed address has changed holders, and recommends, for this reason among others, that listings be time-limited as a matter of principle.2 Whoever takes over a block takes over its listings. Our article Lease or buy IPv4 addresses compares the costs of leasing and buying.

For April 2024, Du and colleagues classified 47,318 routed prefixes as leased, 4.1 percent of all prefixes. Of these, 1.1 percent were announced by an autonomous system that was itself on a blocklist, compared with 0.2 percent of the remaining prefixes.5 For January and February 2025, Degen and colleagues compared leased prefixes with non-leased prefixes of the same size: on a strictly maintained aggregate list, 0.518 percent were listed on average versus 0.179 percent, that is, 2.89 times as many.4

Two details matter in practice. First, leased prefixes were listed more often in every category examined except spam: there they were listed 1.55 times less often.4 Second, listings are added during use. For prefixes that were first listed only in the course of the lease, the median time to the first listing was 27 days, with a measurement uncertainty of 16 days.4 The picture is similar for purchased addresses: in an analysis of transfers from October 2009 to August 2019, transferred addresses made up 16 percent of the address space but accounted for 61 percent of the listed addresses, again with the exception of the spam category.6

The check before taking over a block

Degen and colleagues found no statistical correlation between the lease price of a /24 and the number of its earlier listings. They recommend that lessees check a prefix's reputation themselves and not take the price as an indicator.4 Such a check includes:

  • Query every address, not just samples. In the collection of 253 lists examined, 97 percent of the entries were single addresses.4 A /24 can therefore be tainted in just a few places.
  • Select the relevant lists. According to M3AAWG, websites that check an address against a very large number of lists tend to favor quantity over quality. What matters are the lists your own recipients use.3
  • Look at the registry data and reverse DNS. If they still show the previous user's contacts and hostnames, that has to be dealt with before the first mail is sent.
  • Define responsibility. The contract should state who cleans up existing listings and what applies if a list refuses removal.

Cleaning up in the right order

  1. Establish the listing and its effect. Which list, which addresses, what reason? The rejection messages in the logs show how much traffic is actually affected.3
  2. Eliminate the cause. A request is only worthwhile once the cause has been fixed.3 For a block you have taken over, that means: document that the previous user is no longer sending, and make sure that no abuse originates from your own network.
  3. Correct the registry data. In the RIPE region, every directly allocated address block needs an abuse contact in the “abuse-c:” attribute; subordinate entries can carry their own. The RIPE NCC validates the address on file at least once a year.7 Some lists notify exactly this contact.3 For leased blocks, it should therefore lead to the actual operator.
  4. Put the reverse DNS right. Lists for dynamic addresses evaluate, in part, the naming pattern in reverse DNS.3 Hostnames of the previous user and generic names should therefore be replaced. Our article on reverse DNS for IPv4 networks describes the mechanics.
  5. Request removal, list by list. Every list has its own procedure, often a web form. The request should include the affected addresses, a brief description of the measures taken and a timeline for whatever is still open. Anyone who reports measures they have not implemented risks a permanent listing.3
  6. Verify the result. Query again and monitor delivery. Some lists remove listings immediately on request but relist just as quickly if the problem recurs.2

What to expect from the list

RFC 6471 describes how a well-run list operates: the criteria for listing and removal are published, there is a direct channel for requests, and the operator responds within two days if possible and within seven at the latest. Listings should expire on their own once the reason for them no longer applies.2

Fees are ruled out: lists with negative connotations may not demand money or donations for removal or for faster handling.2 M3AAWG also rejects such fees and points out that a payment does not protect against being listed again. Listings on barely used lists with unreasonable conditions can deliberately be left in place.3

Keeping the block clean

  • Handle abuse reports. Repeated abuse with no response to complaints leads to listings that go beyond the single address.3
  • Restrict outbound port 25. M3AAWG recommends allowing connections to port 25 only for systems explicitly designated as mail servers. All others submit email to a mail server with authentication on port 587 or 465.9
  • Set up feedback loops. Through these, mailbox providers pass their users' spam complaints back to the sender; RFC 6449 describes the process. Enrollment is usually tied to the sending IP addresses and has to be updated for every new block.8
  • Monitor continuously. Query the important lists regularly and automatically, and analyze your own mail logs for rejections.3 Anyone who leases out blocks should do so for the entire term.4

We can help with this: IP reputation and geolocation and leasing IPv4 addresses.

Sources

  1. IRTF: RFC 5782: DNS Blacklists and Whitelists, February 2010
  2. IRTF: RFC 6471: Overview of Best Email DNS-Based List (DNSBL) Operational Practices, January 2012
  3. M3AAWG: Help - I'm on a Blocklist, Version 1.0.1, February 2018
  4. Degen et al., TMA Conference 2025: From Scarcity to Opportunity: Examining Abuse of the IPv4 Leasing Market, 2025
  5. Du et al., ACM IMC 2024 (CAIDA): Sublet Your Subnet: Inferring IP Leasing in the Wild, 2024
  6. Giotsas, Livadariu, Gigis, PAM 2020: A First Look at the Misuse and Abuse of the IPv4 Transfer Market, 2020
  7. RIPE NCC: Abuse Contact Management in the RIPE Database (ripe-705), 1 June 2018
  8. IETF: RFC 6449: Complaint Feedback Loop Operational Recommendations, November 2011
  9. M3AAWG: Best Common Practices for Managing Port 25 for IP Networks, August 2023
  10. Spamhaus: DNSBL usage

Report an error

Subscribe to the blog and newsletter

Tell us what you are planning.

A short call is enough to clarify requirements and next steps. No obligation, and with a contact who understands the technology.

Your text is carried over into the request. Nothing is sent until the next step.

+49 911 6603 610hello@terratransit.de