Home
Lookup Tools
Analysis
Bulk & Enterprise
Resources
Close

OPENPGPKEY Record Security

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.

Look Up OPENPGPKEY Records

Check OPENPGPKEY records for any domain using our free DNS lookup tool.

Look Up OPENPGPKEY Records →

What Is an OPENPGPKEY Record?

OPENPGPKEY records store OpenPGP/GPG public keys directly in DNS, allowing email clients to automatically find encryption keys for recipients:

OPENPGPKEY Record Format

Example OPENPGPKEY Record

<hash>._openpgpkey.example.com.    IN    OPENPGPKEY    <base64-key>

The hash is derived from the local part of the email address.

Record Name Construction

For email address [email protected]:

  1. Take the local part: user
  2. Convert to lowercase: user
  3. Compute SHA-256 hash
  4. Encode first 28 bytes as hex (56 characters)
  5. Append ._openpgpkey.example.com.
# Example for [email protected]
29a5d...5c2f._openpgpkey.example.com.    OPENPGPKEY    mQENBF...

OPENPGPKEY vs Key Servers

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

Setting Up OPENPGPKEY

1. Generate the Hash

# For [email protected]
echo -n "user" | sha256sum | cut -c1-56
# Result: 29a5d...5c2f

2. Export the Public Key

# Export in binary format, then base64 encode
gpg --export [email protected] | base64 -w0

3. Create the DNS Record

29a5d...5c2f._openpgpkey.example.com.    3600    IN    OPENPGPKEY    mQENBF...

Client Support

Email clients and tools that support OPENPGPKEY:

Using with GnuPG

# Enable DANE key lookup
gpg --auto-key-locate dane --locate-keys [email protected]

# Or in gpg.conf
auto-key-locate dane

OPENPGPKEY Best Practices

Security Considerations

Troubleshooting OPENPGPKEY

Common issues and solutions:

Check Your OPENPGPKEY Records

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

Look Up OPENPGPKEY Records →

Related Record Types