OPENPGPKEY Record
OpenPGP Public Key
- Type code
- 61
- Status
- In use
- Defined in
- RFC 7929
What the OPENPGPKEY record is for
OPENPGPKEY lets the domain that hosts an email address publish the OpenPGP key for it, so a sender can find the key without a key server. GnuPG can look keys up this way (for example with the --auto-key-locate dane option).
The record sits under the _openpgpkey label of the address domain. The first label is the SHA-256 hash of the local part, truncated to 28 octets and written in hex, the same scheme SMIMEA uses. The RDATA is the key itself in binary OpenPGP format, shown as base64.
RFC 7929 is Experimental. The record is only trustworthy when the zone is signed and validated.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| Transferable Public Key | variable | A single OpenPGP Transferable Public Key in binary form (without ASCII armor). Shown in base64. |
Zone file syntax
<sha256(local part), 28 octets, hex>._openpgpkey.<domain> <ttl> IN OPENPGPKEY <transferable public key (base64)>
Example
The OPENPGPKEY record at 0a5d17d3b19f82f8340d3977609aa9e86b4ad8b9bd71bd9eced9271f._openpgpkey.josefsson.org, fetched from live DNS on 27 November 2026:
0a5d17d3b19f82f8340d3977609aa9e86b4ad8b9bd71bd9eced9271f._openpgpkey.josefsson.org. 14383 IN OPENPGPKEY mDMEXJLOtBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9fV+QlTmXxo2na ObDuGtw58YaxlOu0JVNpbW9uIEpvc2Vmc3NvbiA…
The key for simon@josefsson.org: the owner label is the truncated SHA-256 of "simon". The base64 key is truncated here.
Common mistakes
- Hashing the full address instead of the local part, or hashing it with different capitalization from the address people use. Clients compute the hash of the local part as given.
- Publishing an ASCII-armored key. The record holds the binary key, which zone files show as base64 without the armor header and checksum.
- Publishing a key with every signature and user ID attached. Large records can exceed what fits in a UDP response; RFC 7929 recommends keeping the key minimal.
- Forgetting to update or remove the record when the key is revoked or replaced, so senders keep encrypting to the old key.
Specifications
- RFC 7929: DNS-Based Authentication of Named Entities (DANE) Bindings for OpenPGP
- 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.