CERT Record
Certificate
- Type code
- 37
- Status
- In use
- Defined in
- RFC 4398
What the CERT record is for
A CERT record publishes a certificate under a domain name so that software can fetch it with an ordinary DNS query. RFC 4398 defines types for X.509 (PKIX), SPKI and OpenPGP data, plus "indirect" types (IPKIX, ISPKI, IPGP, IACPKIX) that carry a URL or fingerprint pointing to the certificate instead of the certificate itself.
The record says nothing about whether the certificate should be trusted. A client has to verify it the usual way, through the certificate's own signatures, or through DNSSEC if the zone is signed.
CERT is rarely used today. OpenPGP keys have a dedicated type, OPENPGPKEY (RFC 7929), and TLS certificates are bound to names with TLSA (DANE).
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| type | 16 bits | The certificate type, e.g. 1 (PKIX), 3 (PGP), 6 (IPGP). Shown as its mnemonic in zone files. |
| key tag | 16 bits | The key tag of the key in the certificate, computed as for DNSKEY (RFC 4034). Zero when the algorithm field is zero. |
| algorithm | 8 bits | The DNSSEC algorithm number of the key, or zero when the algorithm is not one in the DNSSEC registry. |
| certificate or CRL | variable | The certificate, CRL, URL or fingerprint, depending on the type. Base64 in zone files. |
Zone file syntax
<owner> <ttl> IN CERT <type> <key tag> <algorithm> <certificate or CRL>
Example
The CERT records at cert.dns.netmeister.org, fetched from live DNS on 27 November 2026:
cert.dns.netmeister.org. 3600 IN CERT IPGP 0 0 99CE1DC7770AC5A809A60DCD66CE4FE96F6BD3D7 cert.dns.netmeister.org. 3600 IN CERT PKIX 24753 ECDSAP256SHA256 BgorAQUFBwMBMIID8jCCA3igAwIBAgISA+Xn2xmfe1mwordqibd8h6qo…
Two of the three CERT records at this name, from a zone that publishes an example of each record type. The PKIX certificate is truncated.
Common mistakes
- Publishing OpenPGP keys as CERT PGP records and expecting mail clients to find them. Clients that look up keys in DNS use OPENPGPKEY (RFC 7929).
- Expecting TLS clients to read a CERT PKIX record. They don't; DANE uses TLSA records for that.
- Trusting a CERT record from an unsigned zone without checking the certificate's own signatures. Without DNSSEC the answer can be spoofed.
- Putting a full X.509 certificate in DNS without considering size. A few kilobytes of RDATA will not fit in a typical UDP response and needs TCP.
Specifications
- RFC 4398: Storing Certificates in the Domain Name System (DNS)
- 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.