DNS NXDOMAIN Email Bounces: Meaning, Causes, and How to Fix “Domain Not Found” Errors

Complete guide to DNS NXDOMAIN Email Bounces: Meaning, Causes, and How to Fix “Domain Not Found” Errors: syntax, generation, publishing, validation, and common mistakes that break email authentication.
Alaa
By Alaa
SMTPedia documents email infrastructure end to end: SMTP standards from the RFC archive, delivera...
13 min read Updated Jul 12, 2026 164 views

DNS NXDOMAIN Email Bounce – Quick Reference Guide

Main errorDNS NXDOMAIN (Non‑Existent Domain) – the queried domain does not exist in DNS, or cannot be resolved to any IP.
Typical SMTP clues550 5.1.2 Domain not found, 550 5.1.1 Bad destination host, DNS Hard Error looking up (MX): NXDOMAIN, “Host or domain name not found” bounce messages.
Bounce typeHard bounce – permanent failure. Resending to the same address will fail again until DNS is fixed or the domain is registered and configured.
Impact on deliverabilityRepeated sending to NXDOMAIN addresses quickly increases hard‑bounce rate, damages sender reputation, and can trigger filtering at major inbox providers.
Most common causesTypos in domain, expired or deregistered domain, domain never registered, DNS not correctly set up at nameservers, MX pointing to non‑existent hosts, local resolver issues.
Who must fix it?Recipient domain owner / DNS host (for real domain issues), or the sender (for list hygiene, typo‑domains, and internal DNS problems).
Immediate action for sendersSuppress NXDOMAIN addresses, verify with DNS tools, improve validation and enrichment, and avoid resending blindly.

What Is an NXDOMAIN Email Bounce?

When an email bounces with an NXDOMAIN‑related message, it means DNS is telling the sending server that the destination domain does not exist at all. In DNS terminology, NXDOMAIN stands for “Non‑Existent Domain” and is a definitive answer from the authoritative servers that the queried name has no records.

For email delivery, this typically appears as a hard 5.x.x SMTP error citing “domain not found” or “bad destination host” when looking up the recipient’s domain or its MX records. Because NXDOMAIN is considered permanent, mail systems are expected to stop retrying and return a non‑delivery report immediately.

How DNS NXDOMAIN Happens in Email Flows

Every time a message is sent, the outbound mail server must resolve the recipient’s domain to figure out where to deliver it. The server first queries DNS for MX records to find the domain’s mail exchangers, and if none exist, may fall back to A records depending on configuration.

If the DNS lookup for the domain or its MX target returns NXDOMAIN, the sending MTA has nowhere to send the message. Instead of a temporary error it can retry, it receives a clear signal that the domain name is not valid, which translates into an immediate bounce for the sender.

Error typeWhat it meansTypical message / codeBounce classificationKey action
NXDOMAINThe domain does not exist in DNS (non‑existent domain).550 5.1.2 Domain not found, “DNS Hard Error looking up (MX): NXDOMAIN”.Hard bounce, permanent failure.Suppress the address, correct typos, or fix/restore the recipient domain.
Invalid / unknown userMailbox does not exist on an otherwise valid domain.550 5.1.1 User unknown or similar.Hard bounce, permanent failure.Remove address from lists; verify data source quality.
SERVFAILDNS server failure (not a definitive “no such domain”).“DNS type MX lookup responded with code SERVFAIL”.Usually treated as temporary.Investigate DNS health and DNSSEC; retry with backoff.
No MX / mis‑targeted MXDomain exists but has no valid mail exchanger or MX points to wrong place.Host not found, “Bad destination host”, 5.1.x routing errors.Often hard bounce until MX is fixed.Correct MX records and allow time for propagation.
Temporary DNS failureShort‑lived DNS outage or timeout.4.x.x DNS lookup failure, DNS timeout.Soft bounce, temporary failure.Retry; if it persists, treat like infrastructure issue.

Common Symptoms of NXDOMAIN Email Bounces

Typical Bounce Messages and SMTP Codes

NXDOMAIN‑driven bounces usually contain explicit “domain not found” or “bad destination host” wording, often combined with 5.x.x codes that mail providers use for hard failures. Common patterns include:

  • 550 5.1.2 Domain not found
  • 550 5.1.2 - Bad destination host 'DNS Hard Error looking up (MX): NXDomain'
  • Host or domain name not found. Name service error for name=example.xyz type=MX: Host not found
  • Variation of 550 5.1.1 / 5.1.0 / 5.4.1 errors reporting that the destination domain cannot be resolved.

Email platforms might summarize these under labels such as “invalid domain”, “bad domain”, or “DNS hard error” in bounce reports and exportable logs.

How ESPs and CRMs Classify NXDOMAIN Bounces

Most modern ESPs classify NXDOMAIN as a permanent hard bounce because it indicates a fundamental addressing problem rather than a temporary delivery issue. These events are often grouped together with “invalid email address” and “user unknown” bounces in dashboard metrics.

As a sender, that means any address triggering NXDOMAIN should be removed or corrected instead of retried in future campaigns, otherwise you inflate your hard‑bounce rate and damage your sending reputation over time.

Root Causes of NXDOMAIN in Email Delivery

1. Typos and Misspelled Domains

The most common cause of NXDOMAIN is simple human error: the domain in the email address is misspelled. One or two wrong characters in @gmail.com, @outlook.com, or a corporate domain are enough to make the entire address invalid.

These errors often creep in during manual data entry, copy‑paste from other systems, or when users self‑register with incorrect details that no one validates at onboarding.

2. Expired or Deregistered Domains

When a company lets a domain expire or intentionally deregisters it, DNS stops serving that domain and resolvers start responding with NXDOMAIN. Any email addresses using that domain become permanently unreachable.

From the sender’s perspective, this appears the same as a typo: the domain simply does not exist anymore, and attempts to send mail there will generate hard bounces until addresses are removed.

3. Domain Registered but DNS Not Configured

In some cases, the domain is registered at a registrar but has no authoritative nameservers set, or the configured nameservers do not actually host the zone. Depending on how resolvers handle the situation, they may respond with NXDOMAIN for queries against that domain.

This is common when someone buys a domain but forgets to finish DNS setup, or moves hosting providers and only partially completes the migration steps.

4. Broken or Stale MX Configuration

Another pattern involves MX records pointing to hostnames that no longer exist or have been misconfigured. Some error messages will explicitly reference NXDOMAIN when looking up the MX host, or they may generalize this into a “bad destination host” bounce.

Mailbox providers like Exchange Online will often include guidance in these bounces, hinting that the MX record is wrong, ambiguous, or still pointing at an old server after a migration.

5. Local Resolver or Infrastructure Issues

Occasionally, NXDOMAIN can be caused by problems on the sender’s side: a misconfigured local DNS resolver, blocked upstream DNS, or internal DNS forwarding issues. In those scenarios, public DNS resolvers might still resolve the domain correctly while the sender’s infrastructure cannot.

When you see NXDOMAIN only from your own servers, it’s important to rule out local DNS problems before asking the recipient’s IT to investigate their domain.

NXDOMAIN vs Invalid User vs Other Bounce Types

It’s easy to confuse NXDOMAIN with “unknown user” or other hard bounces, but handling them correctly requires understanding what is broken: the domain or the mailbox.

NXDOMAIN vs “User Unknown” (550 5.1.1)

A “user unknown” bounce indicates the address part before the @ is invalid but the domain itself is valid and reachable. The receiving server is able to accept mail for the domain but rejects this specific mailbox.

NXDOMAIN, on the other hand, means the domain name in the address cannot be resolved at all, so the MTA never even reaches a mail server to ask whether the user exists. In both cases, resending is futile unless you correct the address data.

NXDOMAIN vs SERVFAIL and Temporary DNS Errors

SERVFAIL and timeouts signal that DNS had trouble answering the query, often due to infrastructure or DNSSEC issues, and are frequently treated as soft bounces. MTAs may retry in case the DNS problem clears on its own.

NXDOMAIN is a definitive statement from DNS that the domain does not exist, so it should be treated as a permanent failure with no further retries, and the address should be removed or corrected in your database.

How to Diagnose NXDOMAIN Email Bounces (Step‑by‑Step)

Correct diagnosis starts with understanding whether the problem is purely at the domain level, a typo issue in your data, or a local DNS infrastructure problem on your side.

Step 1 – Capture and Read the Bounce Detail

  1. Open the Non‑Delivery Report or bounce email associated with the failed message.
  2. Look for key phrases such as “Domain not found”, “DNS Hard Error looking up (MX): NXDOMAIN”, or “Bad destination host”.
  3. Identify the exact email address and domain that triggered the error, and verify whether the domain looks syntactically correct.

Step 2 – Test DNS Resolution for the Domain

  1. From a shell, run dig example.xyz and dig MX example.xyz (replacing with the recipient domain).
  2. If you receive status: NXDOMAIN, repeat the query against multiple resolvers, such as dig @8.8.8.8 MX example.xyz and dig @1.1.1.1 MX example.xyz.
  3. Note whether all resolvers return NXDOMAIN (indicating a global domain problem) or only your local resolver does (indicating possible internal DNS issues).

Step 3 – Validate Domain Registration and Nameservers

  1. Use a WHOIS lookup to confirm that the domain is currently registered and has not expired.
  2. Check whether the registrar lists valid nameservers and that those nameservers respond authoritatively for the domain.
  3. If the domain is unregistered or expired, treat it as permanently invalid for sending purposes until restored.

Step 4 – Inspect MX and A Records (If You Own the Domain)

  1. If NXDOMAIN appears only in MX lookups while the bare domain resolves, verify that MX records exist and point to valid hostnames.
  2. For each MX target, run dig A mx-host.example.com and ensure those hosts resolve and are reachable.
  3. Correct any stale or incorrect MX records that still reference retired or misspelled servers.

Step 5 – Check Local DNS Infrastructure (For Senders)

  1. If public tools can resolve the domain but your MTA logs show NXDOMAIN, examine your internal DNS resolver configuration.
  2. Confirm that your resolver has working upstreams, no blocking firewall rules, and is not misconfigured to return NXDOMAIN on failure.
  3. Temporarily point your MTA to a known‑good public resolver to confirm whether local DNS is the root cause.

How to Fix NXDOMAIN Bounces as the Domain Owner

If the domain in question belongs to your organization or a customer you manage, the remediation steps focus on registration status, delegation, and basic DNS configuration.

Step 1 – Restore or Register the Domain

  1. Verify whether the domain registration is active at the registrar and renew it immediately if it has lapsed.
  2. If the domain was never registered, complete the registration first before attempting to receive mail.
  3. After renewal or registration, allow some time for TLD zone updates and global cache refresh.

Step 2 – Configure Nameservers and Basic DNS Zone

  1. Set authoritative nameservers at the registrar that actually host your DNS zone.
  2. Create at least an SOA, NS, and A record for the domain, and verify that these records are consistent across all nameservers.
  3. Use external DNS test tools to confirm that queries for the domain return NOERROR with valid records instead of NXDOMAIN.

Step 3 – Add Correct MX Records for Email

  1. Define MX records pointing to valid and reachable mail servers, not to IP addresses or hostnames that don’t exist.
  2. Ensure each MX target has working A or AAAA records and is configured to accept mail for your domain.
  3. For hosted platforms (Microsoft 365, Google Workspace, etc.), follow their exact MX configuration instructions and remove conflicting legacy MX records.

Step 4 – Wait for DNS Propagation and Retest

  1. Understand that DNS changes can take up to 24–72 hours to propagate fully, depending on TTLs and caches.
  2. Monitor the domain using dig and public tools from multiple regions to ensure NXDOMAIN is no longer returned.
  3. Send test emails from major providers and check that they are accepted or, at minimum, fail for reasons other than NXDOMAIN.

How Senders Should Handle NXDOMAIN Bounces

As a sender, you typically cannot fix the recipient’s DNS, but you can protect your deliverability by treating NXDOMAIN as a strong signal of bad data. Good list hygiene and enrichment workflows are essential.

Step 1 – Suppress NXDOMAIN Addresses Immediately

  1. Tag any address that generated an NXDOMAIN bounce as a hard bounce in your CRM or ESP.
  2. Remove or suppress these addresses from future campaigns to prevent repeated failures.
  3. If the address is strategically important (for example a key account), verify its correctness manually or via the account owner before discarding it.

Step 2 – Identify and Correct Typos

  1. Look for obvious misspellings in common consumer domains like gmal.com, gnail.com, or outlok.com.
  2. Apply automated typo‑correction logic where appropriate, but always log and review corrections to avoid over‑aggressive changes.
  3. Reach out to contacts via alternative channels (phone, chat, web portal) to confirm the right email domain when in doubt.

Step 3 – Strengthen Validation Before Import

  1. Integrate real‑time email validation at signup or form submission to catch NXDOMAIN domains before they reach your lists.
  2. Run batch validation on legacy lists to identify and remove addresses that point to non‑existent domains.
  3. Combine DNS checks with mailbox‑level validation to separate NXDOMAIN, invalid user, and temporary issues in your enrichment pipeline.

Step 4 – Monitor Hard‑Bounce Rate and Reputation

  1. Track hard‑bounce rate by campaign and over time, with a specific breakdown for domain‑related errors like NXDOMAIN.
  2. Set internal thresholds (for example, under 2%) and investigate quickly if hard bounces increase after a new list import.
  3. Use this data to refine your acquisition channels and suppress or segment risky sources that disproportionately produce NXDOMAIN bounces.

FAQ – NXDOMAIN and Email Bounces

Is an NXDOMAIN email bounce permanent?

Yes. NXDOMAIN indicates that the domain does not currently exist in DNS, so email servers treat it as a permanent condition and classify it as a hard bounce. Unless the domain is registered and configured, resending will always fail.

Can NXDOMAIN be caused by my own DNS server?

It can. If your internal resolver is misconfigured or cannot reach upstream DNS, it may return NXDOMAIN even when the domain is globally resolvable. Always test via multiple independent resolvers before assuming the recipient domain is at fault.

Why do only some users or systems see NXDOMAIN?

Different networks and servers may use different resolvers and caching behaviors, so a domain that recently changed or expired might still resolve in some places while others already return NXDOMAIN. This leads to confusing “it works for them but not for us” scenarios until caches converge.

Should I ever retry an email after an NXDOMAIN bounce?

As a rule, no. Because NXDOMAIN is a permanent DNS answer, resending the same message to the same address is not expected to succeed and will only damage your metrics. The right action is to fix your data, not to retry delivery.

How does NXDOMAIN affect overall deliverability?

High volumes of NXDOMAIN and other hard bounces signal to mailbox providers that you send to low‑quality or outdated lists, which erodes your sender reputation. Keeping domain‑related bounces low through validation and hygiene is a key pillar of long‑term inbox placement.

13 validation types · 25 free checks daily

Don’t forget to clean your list. Boost your inbox rate.

SMTPing catches what regex misses: disposable addresses, role-based emails, catch-all domains, syntax errors, and 9 more invalid types. Free tier renews every day, no card required.


About the Author

Alaa - SMTPedia author

Alaa · LinkedIn

Email infrastructure specialist with 8+ years of hands-on experience in SMTP, deliverability, and email verification. I’ve configured and troubleshot mail systems across Postfix, Exchange, and cloud relays, managed IP reputation and warmup campaigns, and built verification pipelines processing millions of addresses. My work spans DNS authentication (SPF, DKIM, DMARC, BIMI), bounce handling, blocklist monitoring, and compliance frameworks including CAN-SPAM and GDPR. I write every article on SMTPedia to give email professionals, developers, and marketers the accurate, RFC-grounded reference they need.


About SMTPedia

SMTPedia is an independent email industry reference covering SMTP, IMAP, POP3, email deliverability, marketing platforms, DNS authentication, and email verification. Every article is researched from official provider documentation, IETF RFCs, and industry best practices. Settings and configurations are verified quarterly.

We are cited as a source by ChatGPT, Microsoft Copilot, and thousands of email professionals worldwide. Learn more about our editorial process.