The NSEC record (Next Secure) provides authenticated denial of existence in DNSSEC. It proves that a name or record type doesn't exist by showing the "gap" between existing names in alphabetical order.
Check NSEC records for any domain using our free DNS lookup tool.
Look Up NSEC Records →Without DNSSEC, an attacker could forge "NXDOMAIN" (name doesn't exist) responses. NSEC records solve this by proving the non-existence cryptographically.
Each NSEC record contains:
alpha.example.com. 3600 IN NSEC beta.example.com. A AAAA RRSIG NSEC
This says: after alpha.example.com, the next name is beta.example.com. Alpha has A, AAAA, RRSIG, and NSEC records.
If someone queries for "banana.example.com" and it doesn't exist:
| Field | Description |
|---|---|
| Next Domain Name | The next name in canonical order |
| Type Bit Maps | Record types present at this name |
NSEC records reveal all names in a zone. By following the "next domain" chain, anyone can enumerate every name in your zone. This is called "zone walking."
If zone privacy is important, use NSEC3 instead, which hashes the names to prevent enumeration.
| Aspect | NSEC | NSEC3 |
|---|---|---|
| Zone walking | Possible (reveals all names) | Prevented (hashed names) |
| Complexity | Simpler | More complex |
| Response size | Smaller | Larger |
| Use case | Public zones where privacy isn't needed | When zone enumeration is a concern |
# Query for non-existent name
dig nonexistent.example.com +dnssec
# The response will include NSEC proving non-existence
# List NSEC records
dig example.com NSEC
Common issues and solutions:
DNS Explorer checks NSEC chain integrity, verifies signatures, and alerts you to DNSSEC issues.
Start free DNS Explorer trial14-day full-feature trial
Use our DNS Record Finder to look up NSEC records for any domain.
Look Up NSEC Records →