SECURITY WARNING: Never run commands you don't understand. Always review code before execution. Use at your own risk.
DNS New Added 17 October 2026

zone example.com/IN: NS 'ns1.example.com' has no address records (A or AAAA)

The zone lists a name server inside itself but never gives that server an A or AAAA record, so nobody could find it. BIND refuses to load the zone rather than serve a delegation that cannot work. Frequent causes are a typo in the glue name, a missing trailing dot that turned ns1.example.com. into ns1.example.com.example.com, or deleting the old server's address record before the NS record.

Quick fix

Read the commands before running them. Anything that restarts a service, deletes data or changes permissions should be tried on a non-production system first.

Quick fix
# Run the same check BIND runs at load time
named-checkzone example.com /etc/bind/db.example.com

# Look at the NS lines and the matching address records
grep -nE '\sNS\s|^ns1' /etc/bind/db.example.com

# Missing trailing dot? These two lines mean different things:
#   @  IN NS ns1.example.com.     (absolute, correct)
#   @  IN NS ns1.example.com      (becomes ns1.example.com.example.com.)

# Add the address and bump the SOA serial, then reload
# ns1  IN A  203.0.113.10
named-checkzone example.com /etc/bind/db.example.com && sudo rndc reload example.com

How to diagnose DNS errors

DNS errors are best diagnosed by working down the delegation chain: root, TLD, authoritative nameserver, then the record itself. The most common mistake is testing only through your local resolver, which caches both good and bad answers and hides where the failure actually is. NXDOMAIN means the name definitively does not exist; SERVFAIL means the resolver could not get a valid answer, which is usually a DNSSEC or authoritative-server problem, not a typo.

If the quick fix above does not resolve it, work through these steps. They apply to this whole class of error, not just to this one message, which is usually what saves the time.

  1. Query the authoritative nameserver directly, bypassing all caches: dig @ns1.example.com example.com A. If that answers correctly, you have a caching or propagation issue, not a records issue.
  2. Trace the full delegation with dig +trace example.com. This shows exactly which level of the hierarchy stops returning answers.
  3. Distinguish NXDOMAIN from SERVFAIL from timeout. They have three entirely different causes. Check the status: line in dig output.
  4. For SERVFAIL, test with DNSSEC validation disabled: dig +cd example.com. If that succeeds, the problem is a broken DNSSEC chain, often after a key rollover.
  5. Check TTLs before declaring propagation broken. A record with a 24-hour TTL genuinely will not update for resolvers that cached it, and there is no way to force them.

Tools worth reaching for

  • dig +trace
  • dig @authoritative-ns
  • dig +cd (DNSSEC bypass)
  • kdig
  • resolvectl status

Authoritative references

Primary documentation for this error, worth reading before applying any fix in production.

bind9.readthedocs.io rfc-editor.org

Related DNS errors

See all 20 DNS errors →

Browse other categories

Something missing or wrong?

This entry is maintained by hand. If the fix is out of date, incomplete, or you have a better one, email a correction and it will be reviewed.