Home
Lookup Tools
Analysis
Bulk & Enterprise
Resources
Close

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:

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:

  1. Server returns the NSEC for "alpha.example.com"
  2. NSEC shows next name is "beta.example.com"
  3. "banana" falls between "alpha" and "beta" alphabetically
  4. 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

NSEC Record Best Practices

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:

Check Your NSEC Records

Use our DNS Record Finder to look up NSEC records for any domain.

Look Up NSEC Records →

Related Record Types