The OPENPGPKEY record publishes OpenPGP public keys in DNS, enabling automatic discovery of encryption keys for email addresses. Defined in RFC 7929, it's part of the DANE (DNS-Based Authentication of Named Entities) family of protocols.
Check OPENPGPKEY records for any domain using our free DNS lookup tool.
Look Up OPENPGPKEY Records →OPENPGPKEY records store OpenPGP/GPG public keys directly in DNS, allowing email clients to automatically find encryption keys for recipients:
<hash>._openpgpkey.example.com. IN OPENPGPKEY <base64-key>
The hash is derived from the local part of the email address.
For email address [email protected]:
useruser._openpgpkey.example.com.# Example for [email protected]
29a5d...5c2f._openpgpkey.example.com. OPENPGPKEY mQENBF...
| Aspect | OPENPGPKEY (DANE) | Key Servers |
|---|---|---|
| Control | Domain owner controls | Third-party operated |
| Authentication | DNSSEC validation | Web of Trust / signatures |
| Revocation | Remove DNS record | Publish revocation cert |
| Privacy | Email addresses hashed | Often searchable |
| Availability | Depends on DNS | Depends on key server |
# For [email protected]
echo -n "user" | sha256sum | cut -c1-56
# Result: 29a5d...5c2f
# Export in binary format, then base64 encode
gpg --export [email protected] | base64 -w0
29a5d...5c2f._openpgpkey.example.com. 3600 IN OPENPGPKEY mQENBF...
Email clients and tools that support OPENPGPKEY:
--auto-key-locate dane# Enable DANE key lookup
gpg --auto-key-locate dane --locate-keys [email protected]
# Or in gpg.conf
auto-key-locate dane
Common issues and solutions:
DNS Explorer validates OPENPGPKEY records, checks DNSSEC status, and tracks your email encryption configuration.
Start free DNS Explorer trial14-day full-feature trial
Use our DNS Record Finder to look up OPENPGPKEY records for any domain.
Look Up OPENPGPKEY Records →