Skip to content
Fresh IPv4 news just dropped — 🎉 see what you’re missing

IP Blacklist Check: DNSBL Results and Listing Scope

An IP blacklist check reports whether a particular source lists an address or a covering range. Interpret the list’s purpose, response code and published scope together. A policy entry is different from an abuse entry; a failed lookup leaves the state unknown.

Source or findingMeaningWhat to record or check next
Spamhaus Blocklist (SBL)Listings concerning abuse-associated addresses or networksListing identifier, stated reason and full published range
Spamhaus Exploits Blocklist (XBL)Addresses associated with compromised systems or related exploitsIncident details and the system or shared egress responsible
Spamhaus Policy Blocklist (PBL)Space not intended for direct unauthenticated delivery to recipient mail serversWhether your intended mail path conflicts with the policy
Spamhaus ZENCombined IP datasets, distinguished by response codesEvery returned code; a single lookup can have multiple findings
Another operator’s DNSBL, such as Barracuda BRBLThat operator’s dataset and listing policyIts own lookup rules, evidence and review procedure
Receiver’s private decisionA particular service rejects or limits the trafficExact response, receiving service and its support route

A DNS blocklist (DNSBL) makes listing records available through the Domain Name System. The lookup method does not determine whether a finding concerns abuse or mail policy.

Source semantics checked on November 24, 2026 against the operators’ documentation. The table describes dataset purposes, not live results for any customer block or an exhaustive inventory of active lists.

Read the status before the listing code

For Spamhaus IPv4 queries, octets are reversed before the DNSBL zone. The command below is a syntax example using a reserved documentation address; substitute an authorized real address and its reversed octets. It is not a live reputation test or a measured result.

Use an access method allowed for your usage and query volume. A public DNS resolver is not automatically permitted to query a DNSBL, and a self-operated resolver does not itself establish subscription eligibility.

# Example for documentation address 203.0.113.7, not a real block assessment.
dig +time=3 +tries=1 +noall +comments +answer \
  7.113.0.203.zen.spamhaus.org A

Keep the status header and every A record. dig +short hides useful diagnostic context. A successful process exit alone does not tell you that the DNS query produced a valid negative answer.

DNS observationClassificationNext action
NXDOMAIN through a verified, permitted query pathNot listed in this zone at query timeSave the negative result with source and timestamp
NOERROR with documented listing codesListed in the indicated dataset or datasetsRead all codes and inspect the listing’s scope
Spamhaus error code in 127.255.255.0/24Query failed at the service/access layerCorrect the query or access issue; do not score reputation
Timeout, SERVFAIL or REFUSEDInconclusiveInvestigate DNS resolution and service access
NOERROR without an expected A record, an unknown code or an unexpected addressInconclusiveCheck current operator documentation and the resolution path

This classification applies to the requested lookup. Before trusting negative results, run both of Spamhaus’s documented controls through the same permitted resolver and access method as the target query. These examples use the public ZEN zone:

# Positive control: Spamhaus's deliberately listed test address 127.0.0.2.
dig +time=3 +tries=1 +noall +comments +answer \
  2.0.0.127.zen.spamhaus.org A

# Negative control: Spamhaus's deliberately unlisted test address 127.0.0.1.
dig +time=3 +tries=1 +noall +comments +answer \
  1.0.0.127.zen.spamhaus.org A
ControlExpected DNS result
Positive: 2.0.0.127.zen.spamhaus.orgNOERROR with one or more documented listing codes, such as 127.0.0.2
Negative: 1.0.0.127.zen.spamhaus.orgNXDOMAIN

These are documented expectations, not captured live output. A query-error code is not a successful positive control. If either control fails its expected result, investigate the query path before using target lookups for acceptance decisions. Do not convert an unavailable source into a green status.

Recognize selected Spamhaus response codes

These are selected IP dataset codes, not a complete list of all Spamhaus products. Consult the official zone and return-code reference when implementing a parser or investigating an unfamiliar answer.

A recordInterpretation
127.0.0.2SBL
127.0.0.3Combined Spam Sources (CSS), included in SBL and ZEN query zones
127.0.0.4XBL
127.0.0.9Do Not Route Or Peer (DROP), returned with an SBL result
127.0.0.10 / 127.0.0.11PBL, maintained by the ISP / Spamhaus respectively
127.255.255.252Error: misspelled DNSBL name
127.255.255.254Public-mirror error: query through a public/open resolver
127.255.255.255Public-mirror error: excessive queries

The last two errors describe the public-mirror access method; keyed Data Query Service access has its own error conditions. Do not reuse this table as a universal parser for every DNSBL or treat all addresses beginning with 127 as abuse findings.

An illustrative reply containing both 127.0.0.2 and 127.0.0.10 represents two different findings. Removing a policy entry would not resolve the SBL finding. Domain-oriented lists also require their documented domain-query format; do not send an IP lookup to a domain-only zone.

Establish the affected range

Record the exact IP you queried and the range published in the operator’s listing record. They may differ. A /24 can be covered by a broader listing even if no separate record names that /24.

For block acceptance, define the address set you actually intend to deploy. Check those addresses and inspect covering records using the operator’s supported lookup or data access. A few samples are useful for triage, but do not establish a result for every address. Arrange permitted bulk access if complete coverage is required.

Retain this compact evidence record:

FieldExample content
TargetExact IP and proposed deployment range
ObservationDataset, UTC time, raw status and all response codes
ListingIdentifier, published range, reason and stated dates
Service impactReceiver response or application failure, if observed
Coverage limitationSampled addresses, inaccessible records or unknown history
Next ownerTenant, resource holder, responsible network or receiving service

A listing that predates a lease is evidence for a handover investigation, not automatic proof that all current activity is unrelated. Likewise, a recent listing date does not by itself establish when the underlying activity began.

Choose the next investigation

For a confirmed listing, follow the delisting workflow. For a general interpretation of scores, service labels and history, use IP reputation basics. For acquisition checks beyond reputation, use the block verification checklist.

If public lookups are negative but a receiver still denies traffic, investigate that receiver’s stated reason. A routing-history tool, including ipv4.online’s /reputation/ tool, does not substitute for DNSBL data or prove mail acceptance.

When assessing an IPv4 supply offer, specify the relevant datasets, test scope and acceptance evidence. Avoid a bare requirement for “no listings anywhere” without defining which findings matter to the intended workload.

Frequently asked questions

Does any returned A record mean an IP is blocklisted?
No. Match all returned records to the queried service’s documented codes. Spamhaus uses 127.255.255.0/24 for query errors; these are neither listings nor negative reputation results. Other services have their own conventions.
Does an empty dig answer mean an address is clean?
No. Inspect the DNS status and the access method. A valid NXDOMAIN means not listed in the queried zone at that time. Timeouts, SERVFAIL, REFUSED and unexpected empty responses leave the result inconclusive.
Can a /24 be affected by a listing for a larger range?
Yes. Check the list operator’s published range and listing record. Sampling one address or seeing no separate /24 entry does not exclude a covering listing. Record the affected scope and coordinate with the network responsible for the larger range.
Is a PBL listing proof of spam or malware?
No. Spamhaus PBL records address space that should not deliver unauthenticated email directly to destination mail servers. It is a mail policy signal, not a general finding of compromise or a reason to deny unrelated web traffic.
Last updated on