NSEC Record DNSSEC
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.
Look Up NSEC Records
Check NSEC records for any domain using our free DNS lookup tool.
Look Up NSEC Records →What Is an NSEC Record?
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:
- The next domain name in the zone (alphabetically)
- The record types that exist at the current name
NSEC Record Format
Example NSEC Record
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.
How NSEC Proves Non-Existence
If someone queries for "banana.example.com" and it doesn't exist:
- Server returns the NSEC for "alpha.example.com"
- NSEC shows next name is "beta.example.com"
- "banana" falls between "alpha" and "beta" alphabetically
- Therefore, "banana" doesn't exist (proven by the gap)
NSEC Record Fields
| Field | Description |
|---|---|
| Next Domain Name | The next name in canonical order |
| Type Bit Maps | Record types present at this name |
Zone Walking Concern
Privacy Issue
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.
NSEC vs NSEC3
| 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 |
When to Use NSEC
- Public zones — When zone contents aren't sensitive
- Simplicity — Easier to implement and debug
- Performance — Slightly smaller responses
- Transparency — When zone enumeration is acceptable or desired
NSEC Record Best Practices
- Consider privacy needs — Use NSEC3 if zone enumeration is a concern.
- Sign NSEC records — NSEC records must have RRSIG signatures.
- Chain must be complete — Every gap in the zone must be covered.
- Last wraps to first — The last NSEC points back to the zone apex.
Checking NSEC Records
# 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
Troubleshooting NSEC
Common issues and solutions:
- NSEC chain broken — Re-sign the zone; ensure all names are covered.
- Missing type in bitmap — NSEC type bitmap must include all types at that name.
- Expired RRSIG — NSEC records need valid signatures.
- Zone walking detected — If privacy is needed, switch to NSEC3.
Validate Your DNSSEC Configuration
DNS Explorer checks NSEC chain integrity, verifies signatures, and alerts you to DNSSEC issues.
Start free DNS Explorer trial14-day full-feature trial
Check Your NSEC Records
Use our DNS Record Finder to look up NSEC records for any domain.
Look Up NSEC Records →Related Record Types
- NSEC3 Record — Hashed denial of existence
- NSEC3PARAM Record — NSEC3 parameters
- RRSIG Record — Signatures for NSEC
- DNSKEY Record — Zone signing keys