How does Spamhaus decide whether to list a subdomain or a whole domain on the DBL?

Updated on 29 Nov 2026: We clarified which DBL feeds include hostname listings, how to compare their results, and what to expect after removal approval.
Spamhaus documents two relevant DBL behaviors. Ordinary DBL entries are made at the main-domain level, so hostnames beneath a listed domain also return a positive result through wildcard matching. The abused-legit component is the exception: its hostname-level data can identify a compromised legitimate site without listing the rest of the domain. That hostname data is available through DQS and rsync, rather than the free public mirrors.
Spamhaus does not publish the exact criteria used to choose or classify every entry. The Spamhaus DBL includes domains associated with spam, phishing, malware, botnet command-and-control activity, abused legitimate sites, and abused redirectors.
- Main domain: This is the documented scope for ordinary DBL entries.
- Abused-legit hostname: A compromised hostname can be listed without listing the entire legitimate domain.
- Wildcard result: A hostname lookup can return listed because its parent domain is listed.
- Response code: The DNS answer identifies the DBL category or an error condition.
Main-domain entries versus hostname entries
For a normal DBL entry, expect the registered or main domain to be the listed unit and its subdomains to match through wildcard behavior. For a legitimate site compromised at one hostname, the abused-legit component can support a narrower hostname entry. Spamhaus's DBL FAQ says domains must match several undisclosed criteria, listings are constantly reevaluated, and most listings expire automatically after the triggering activity stops.
Treat a DBL result as a scope and category question first. Check the full hostname, the parent domain, and the DNS return code. Then identify where that name appears, such as the message body, envelope sender, HELO, rDNS, click tracking, image host, or visible sender identity.
|
|
|
|---|---|---|
Hostname only | Possible abused-legit entry | Code and parent |
Parent domain | Main-domain entry | All domain uses |
Host and parent | Possible wildcard match | Compare answers |
127.255.255.x | Query error | Resolver and zone |
Common DBL results and what they indicate.
The DNS label alone does not reveal whether the hostname has its own record or inherits a listed result from its parent. A blocklist or blacklist hit on a tracking hostname still needs a parent-domain lookup and a review of the response code. Mailbox filters can also combine DBL data with authentication, content, engagement, and prior reputation.

Spamhaus Reputation Checker screen showing a DBL lookup result for a domain.
When a hostname is listed
The clearest case for a narrow listing is the abused-legit component. It supports hostname-level data through DQS and rsync when a legitimate site is compromised, including sites on a shared domain. The narrower listing reduces collateral blocking.
The hostname update explains that hostname listings target compromised legitimate sites more precisely, especially where unrelated sites share one second-level domain. Common causes include a compromised CMS, injected files, stolen credentials, and redirect abuse.
A hostname listing does not identify an individual URL path. If shop.example.com/catalog is compromised, DBL records the hostname shop.example.com, not /catalog. Other pages on that hostname still share the result. The DBL FAQ confirms that full URL paths are not included.
Abused-legit hostname
- Legitimate parent: The wider domain has legitimate content or many unrelated users.
- Compromised host: Spamhaus identifies abuse on one hostname.
- Fix path: Remove the compromise and secure the site or hosting account.
Main-domain entry
- Domain classification: The entry belongs to an ordinary DBL category.
- Wildcard effect: Queries for hostnames beneath the domain also return listed.
- Fix path: Review every mail, web, DNS, and redirect use of the domain.
Separating mail streams onto subdomains still helps with ownership and diagnosis, but it does not guarantee DBL isolation. An ordinary parent-domain entry makes descendant hostnames return listed. The same operational caution applies to subdomain reputation in mailbox filtering.
Rule for sending subdomains
Use subdomains to make ownership, monitoring, and incident response clearer. Do not use disposable hostnames to escape a poor reputation pattern.
Why the whole domain gets listed
Spamhaus says ordinary DBL data lists at the main-domain level. It does not publish a formula that maps a specific observation to that scope. Its public guidance says reputation depends on observed use over time, connected IP reputation, hosting quality, DNS configuration, and abuse activity.
- Unknown reputation: Spamhaus says an unknown domain starts with poor reputation because unknown domains carry greater abuse risk. That starting reputation does not by itself mean the domain is listed.
- Abusive activity: Spam, phishing, malware, botnet activity, and redirector abuse can produce DBL categories.
- Hosting and DNS: Spamhaus advises keeping NS, A, MX, website hosting, rDNS, and HELO data clean and correct.
- Connected reputation: Domain and IP reputation can affect each other. Spamhaus's sender guidelines also recommend reputable network providers and registrars. That advice does not disclose how listing scope is chosen.
- Automated or manual action: Most entries are automated, but Spamhaus researchers can add or remove entries manually.
Choose the DBL investigation scope
Investigation paths based on the observed result, not severity grades assigned by Spamhaus.
Exact hostname only
Inspect the host
Check for an abused-legit code and inspect that host for compromise.
Marketing hostname
Compare the parent
Review the parent result, list source, URL chain, and recent campaigns.
Parent domain
Review the domain
Treat the event as a domain-wide reputation incident.
Relisted domain
Recheck the cause
The triggering activity continued or returned after removal.
Do not reduce a DBL entry to one complaint metric or one spam trap. The public criteria are not that simple. List acquisition, affiliate traffic, compromised web content, redirector abuse, connected infrastructure, or a URL reputation issue can matter even when the reported complaint rate looks low.
Which DBL access methods include hostname data?
Spamhaus's hostname guidance specifies that the abused-legit hostname dataset is available through the Data Query Service (DQS) and rsync. The free public mirrors do not include this hostname-level data.
A negative result from dbl.spamhaus.org therefore does not rule out a hostname-only entry in DQS or rsync. When two checks disagree, compare their data feeds and query zones before assuming the listing changed. Preserving the full hostname is necessary, but the lookup must also use a feed that includes hostname data.
How wildcard matching affects DBL lookups
DBL supports wildcard lookups for main-domain entries. If example.com is listed, a lookup for mail.example.com can return the same positive answer. That does not prove Spamhaus created a separate record for mail.example.com. The parent entry can produce the hostname result.
DBL scope checks with DNS statusBASH
# Public mirror: check ordinary domain wildcard results dig +noall +comments +answer example.com.dbl.spamhaus.org A dig +noall +comments +answer mail.example.com.dbl.spamhaus.org A # DQS: replace QUERY_KEY with your DQS query key dig +noall +comments +answer click.mail.example.com.QUERY_KEY.dbl.dq.spamhaus.net A dig +noall +comments +answer mail.example.com.QUERY_KEY.dbl.dq.spamhaus.net A dig +noall +comments +answer example.com.QUERY_KEY.dbl.dq.spamhaus.net A
Use the same data feed for the full hostname and parent comparison. For a nested hostname such as click.mail.example.com, also check mail.example.com before example.com. Matching codes support a wildcard explanation but do not prove whether a separate hostname entry exists. Keep the DNS status with each answer; an empty answer alone does not establish NXDOMAIN.
Do not query DBL like an IP blacklist
DBL contains domains and hostnames, not IP addresses. An IP query returns 127.0.1.255, which means IP queries are prohibited. It is not evidence that the IP is on the DBL blacklist.
Why full-hostname queries matter
A lookup system can erase the distinction before the query reaches DBL. Software that converts shop.customer.example.com to example.com will still detect an ordinary parent-domain entry, but it cannot ask whether the full hostname has a narrower abused-legit entry. Spamhaus's hostname guidance specifically warns that configurations which reduce every query to the base domain do not benefit from hostname-based data.
|
|
|
|---|---|---|
Full hostname on a hostname-aware feed | Host entry or parent wildcard | Hostname-only entries if the feed omits them |
Reduced to parent | Ordinary parent entry | Narrow hostname entry |
IP sent to DBL | Only prohibited-query code | Actual IP reputation |
How query normalization changes the scope you can observe.
Preserve the fully qualified hostname for the first query, then query the parent separately. A positive hostname result still needs the parent comparison because wildcard matching can produce the same answer. In automated filtering, confirm that the integration is designed for domain and URI checks rather than an IP DNSBL field.
A lookup is only as precise as its input
Record the original hostname, intermediate parents, registered domain, DBL return code, access method, query zone, and resolver result. Without those fields, an incident record cannot reliably show whether Spamhaus listed one hostname or the wider domain.
How to read a DBL return code
A positive DNS answer is useful only when its code is interpreted. DBL listing responses are in 127.0.1.0/24, but 127.0.1.255 is a prohibited-IP-query error. For a correctly formed query through supported access, NXDOMAIN means the queried name is not listed in that feed. It does not establish that a hostname-only entry is absent from another feed. A timeout, SERVFAIL, or other resolver failure is inconclusive. Codes in 127.255.255.0/24 are query errors, not listings.
|
|
|
|---|---|---|
127.0.1.2 | Low-reputation or spam domain | Ordinary DBL |
127.0.1.4 | Phishing domain | Ordinary DBL |
127.0.1.5 | Malware domain | Ordinary DBL |
127.0.1.6 | Botnet C&C domain | Ordinary DBL |
127.0.1.102 | Abused-legit spam | Hostname clue |
127.0.1.103 | Abused redirector | Redirector review |
127.0.1.104 | Abused-legit phishing | Hostname clue |
127.0.1.105 | Abused-legit malware | Hostname clue |
127.0.1.106 | Abused-legit botnet C&C | Hostname clue |
127.0.1.255 | IP queries prohibited | Query error, not a listing |
Current DBL categories most relevant to domain and hostname scope.
Error codes are not listings
- 127.255.255.252: The DNSBL zone name contains a typing error.
- 127.255.255.254: The query came through an unsupported public resolver.
- 127.255.255.255: The query source exceeded the permitted volume.
For an individual incident, confirm the result in Spamhaus's Reputation Checker and follow the instructions returned for the domain. This avoids diagnosing a resolver error as a real blocklist or blacklist entry.
How to investigate the scope
Start with the original DNS label and work outward. The blocklist basics explain how a domain blocklist (blacklist) differs from an IP-based DNSBL. For a broader technical check, Suped's domain health checker can expose related DNS and authentication problems.
- Confirm the result: Use the Spamhaus Reputation Checker and record the listing guidance.
- Preserve and compare scope: Use a hostname-aware feed, query the full hostname and its parent domains, then interpret the response codes.
- Inspect mail: Review the envelope sender, DKIM d= domain, HELO, rDNS, links, images, and redirects.
- Audit acquisition: Find purchased data, scraped addresses, inactive recipients, weak consent paths, and abusive affiliates.
- Review web assets: Check CMS updates, plugins, injected files, redirectors, upload paths, and user-generated pages.
- Fix before removal: Stop the triggering activity before requesting removal or waiting for automatic expiry.
Blocklist checker
Check your domain or IP against 144 blocklists.















If the entry appears only on a click or image hostname with an abused-legit code, focus on that host, its software, credentials, and recent URL chains. If the parent domain returns an ordinary DBL code, widen the review to every mail stream and web property using the domain. More detail on DBL categories and remediation is available in the Spamhaus DBL guide. Changing a sending IP does not by itself remove a domain-level DBL entry.
Removal and expiry
Most DBL entries expire automatically after the associated activity stops. Follow the removal instructions returned for an eligible domain. Requests are reviewed, and removal is free. Once approved, removal is processed immediately, but some local systems take up to 24 hours to stop using the old result. If the listing remains active after that interval, follow up with Spamhaus. The DBL FAQ explains removal timing. A domain can relist if the activity is detected again.
How Suped fits into the workflow
Suped's product covers the monitoring and investigation side of a DBL incident. It brings DMARC data, authentication results, sending sources, domain changes, and blocklist monitoring into one workflow, so the team can connect an alert to recent domain use.

Blocklist monitoring page showing domain and IP checks across blocklists with importance and status
The practical workflow is to identify the affected domain, review sending sources and authentication changes in Suped, then compare that evidence with the DBL category and web-server investigation. DMARC reports describe email authentication; they do not show which URL path was compromised or confirm that a website is clean.
Where Suped helps
- Listing alerts: Notifications reduce the delay between detection and investigation.
- Source context: Verified and unverified sending sources can be separated during an incident.
- Authentication context: DMARC, SPF, and DKIM results show which sources used the affected domain.
- Multi-domain review: Teams and MSPs can track incidents across client domains without separate spreadsheets.
Suped provides monitoring and email authentication context for the investigation. Spamhaus controls its DBL entries and removal decisions. Confirm the affected hostname and resolve the underlying abuse before requesting removal.
How to reduce listing risk
Reduce DBL risk by building stable legitimate use and removing abuse quickly. Spamhaus specifically points to reputation over time, functional abuse reporting, clean hosting, correct DNS, proper rDNS, and a valid HELO. Authentication adds visibility but does not prove that mail is wanted or that linked websites are secure.
- Use stable domains: Avoid rotating new domains or disposable subdomains for ordinary email.
- Separate streams: Give transactional, lifecycle, marketing, and affiliate traffic clear ownership.
- Secure web systems: Patch CMS software and plugins, remove injected redirects, limit upload abuse, and protect credentials.
- Maintain role accounts: Keep abuse@ and postmaster@ working, and process feedback-loop reports.
- Monitor authentication: Use SPF, DKIM, and DMARC to expose spoofing and broken sending sources.
- Investigate relists: A repeated DBL entry means the triggering activity continued or returned.
DMARC monitoring example, not a DBL removal fixDNS
v=DMARC1; p=none; rua=mailto:dmarc@example.com
Publish this example at _dmarc.example.com only after replacing the domain and reporting address with your own. The p=none policy requests monitoring and does not request rejection of messages that fail DMARC. Authentication changes alone do not remove a DBL listing.
SPF authorizes sending hosts, DKIM verifies a domain signature, and DMARC checks authenticated domains against the visible From domain and publishes handling policy. They do not prove consent or website integrity. When a domain is listed without active sending, investigate hosted content and connected infrastructure. See why not sending emails still leaves a domain exposed to DBL listing.
Frequency asked questions
No. DBL contains domains and hostnames. A DBL query for an IP returns 127.0.1.255, which means IP queries are prohibited and does not mean the IP is listed.
Not always. A listed parent domain produces positive wildcard results for its hostnames. Use a feed with hostname data, preserve the full hostname, compare parent results, and interpret the return codes. Matching answers do not prove the hostname has a separate entry.
No. Subdomains improve ownership and diagnosis, but ordinary DBL entries are made at the main-domain level and apply to descendant hostnames through wildcard matching.
The parent domain is likely listed. DBL wildcard behavior makes hostnames under a listed parent return a positive result even when those hostnames do not have separate records.
Most do. Spamhaus continually reevaluates DBL entries, and most expire after the associated activity stops. A domain can relist automatically if the activity is detected again.
No. Stop the triggering activity first, then follow the removal instructions returned for the domain. Removal is free. Approved removals are processed immediately, but cached results in some local systems persist for up to 24 hours. Unresolved abuse can cause relisting.

