NSEC3 Record

Next Secure version 3

Type code
50
Status
In use
Defined in
RFC 5155

What the NSEC3 record is for

NSEC3 does the same job as NSEC but chains hashes of names instead of the names themselves. Each owner name in the zone is hashed (SHA-1, with an optional salt and extra iterations), the hashes are sorted, and each NSEC3 record names the next hash and lists the types at the original name. A resolver hashes the name it asked for and checks which NSEC3 record covers it.

Hashing makes zone walking slower but does not prevent it: the hashes can be collected and guessed offline. RFC 9276 therefore recommends no salt and zero additional iterations, since extra iterations add cost for servers and resolvers without much protection.

NSEC3 also supports opt-out, where unsigned delegations are skipped by the chain. Large delegation-heavy zones such as .com use it so they do not need records for every unsigned child. NSEC3 records only appear in negative and wildcard answers; the zone apex carries an NSEC3PARAM record describing the parameters.

Look up the NSEC3PARAM records of com →

NSEC3 records sit at hashed owner names and only come back in negative answers, so this looks up the NSEC3PARAM record at the .com apex, which shows the same hash parameters.

Wire format and fields

FieldSizeMeaning
Hash Algorithm8 bitsThe hash function. 1 (SHA-1) is the only value defined.
Flags8 bitsBit 7 (value 1) is the Opt-Out flag: this record may cover unsigned delegations. Other bits are zero.
Iterations16 bitsThe number of additional times the hash is applied. RFC 9276 recommends 0.
Salt Length8 bitsThe length of the Salt field in octets, 0 for no salt.
SaltvariableA value appended to the name before hashing. Shown in hex, or as - when empty.
Hash Length8 bitsThe length of the Next Hashed Owner Name in octets.
Next Hashed Owner NamevariableThe next hash in the sorted chain, unmodified binary on the wire and base32hex without padding in presentation.
Type Bit MapsvariableThe record types that exist at the original owner name, in the same format as NSEC.

The NSEC3 owner name is the base32hex-encoded hash of the original name, prepended as one label to the zone name.

Zone file syntax

<hashed owner>.<zone> <ttl> IN NSEC3 <hash algorithm> <flags> <iterations> <salt (hex) or -> <next hashed owner (base32hex)> <type> [<type> …]

Example

The NSEC3 record at com, fetched from live DNS on 27 November 2026:

P35I265LQAQEHOM8F5D8EC7RPNK36AQR.com. 900 IN NSEC3 1 1 0 - P35IBE1BMVK2G6INR61TV0OMIL8J2SQI NS DS RRSIG

Returned in the authority section of a dig +dnssec query for a nonexistent .com name. SHA-1, the Opt-Out flag set, no extra iterations and no salt.

Common mistakes

  • Using a high iteration count for extra security. It adds work for every server and resolver, and under RFC 9276 validators may treat zones above a limit as insecure or fail them.
  • Rotating the salt on a schedule. RFC 9276 recommends no salt at all, and changing it forces the whole NSEC3 chain to be rebuilt.
  • Assuming NSEC3 makes the zone private. The hashes can be collected and dictionary-attacked offline, especially for common names.
  • Turning on opt-out in a small zone where every delegation is signed. It only saves space in large zones with many unsigned delegations and weakens proof for those delegations.

Specifications

  • RFC 5155: DNS Security (DNSSEC) Hashed Authenticated Denial of Existence
  • RFC 6840: Clarifications and Implementation Notes for DNS Security (DNSSEC) (Clarifies NSEC3 and opt-out handling in validators.)
  • RFC 9077: NSEC and NSEC3: TTLs and Aggressive Use (Sets the NSEC3 TTL to the lesser of the SOA MINIMUM field and the SOA TTL.)
  • RFC 9276: Guidance for NSEC3 Parameter Settings (Recommends zero additional iterations and no salt, and allows validators to treat high iteration counts as insecure.)
  • IANA DNS Resource Record (RR) TYPEs registry: type code and status

Related record types

Domain Intelligence APIs

Get started with our easy-to-use API docs.