Basic Record Types
A - IPv4 Address
Maps a domain name to an IPv4 address. Format:<name> [<ttl>] IN A <ipv4-address>
AAAA - IPv6 Address
Maps a domain name to an IPv6 address. Format:<name> [<ttl>] IN AAAA <ipv6-address>
NS - Name Server
Delegates a DNS zone to use the specified authoritative name server. Format:<name> [<ttl>] IN NS <nameserver>
CNAME - Canonical Name
Creates an alias from one name to another. Format:<name> [<ttl>] IN CNAME <target>
PTR - Pointer
Maps an IP address to a domain name (reverse DNS). Format:<reverse-ip> [<ttl>] IN PTR <hostname>
MX - Mail Exchange
Specifies mail servers for the domain. Format:<name> [<ttl>] IN MX <priority> <mailserver>
TXT - Text
Stores arbitrary text data, often used for SPF, DKIM, verification, etc. Format:<name> [<ttl>] IN TXT <text>
Service Location
SRV - Service
Specifies location of services. Format:<service>.<proto>.<name> [<ttl>] IN SRV <priority> <weight> <port> <target>
- Priority: Lower values preferred (like MX)
- Weight: Relative weight for same priority
- Port: TCP/UDP port number
- Target: Hostname providing the service
NAPTR - Naming Authority Pointer
Provides rules for rewriting domain names, often used in ENUM and SIP. Format:<name> [<ttl>] IN NAPTR <order> <preference> <flags> <service> <regexp> <replacement>
DNSSEC Records
- DNSKEY
- RRSIG
- DS
- NSEC
- NSEC3
- NSEC3PARAM
Public key for DNSSEC validation.Format: Flags:
<name> [<ttl>] IN DNSKEY <flags> <protocol> <algorithm> <public-key>- 256: Zone Signing Key (ZSK)
- 257: Key Signing Key (KSK)
- 8: RSASHA256
- 13: ECDSAP256SHA256
- 15: ED25519
Security and Certificates
TLSA - TLS Authentication
Associates a TLS server certificate with the domain (DANE). Format:<name> [<ttl>] IN TLSA <usage> <selector> <matching-type> <certificate-data>
- 0: CA constraint
- 1: Service certificate constraint
- 2: Trust anchor assertion
- 3: Domain-issued certificate
SSHFP - SSH Fingerprint
Publishes SSH host key fingerprints. Format:<name> [<ttl>] IN SSHFP <algorithm> <fp-type> <fingerprint>
- 1: RSA
- 2: DSA
- 3: ECDSA
- 4: Ed25519
CAA - Certification Authority Authorization
Specifies which CAs are allowed to issue certificates for the domain. Format:<name> [<ttl>] IN CAA <flags> <tag> <value>
CERT - Certificate
Stores certificates. Format:<name> [<ttl>] IN CERT <type> <key-tag> <algorithm> <certificate>
Modern Standards
SVCB - Service Binding
Provides alternative endpoints for services with connection parameters. Format:<name> [<ttl>] IN SVCB <priority> <target> <params>
HTTPS - HTTPS Binding
Specialized SVCB for HTTPS. Format:<name> [<ttl>] IN HTTPS <priority> <target> <params>
Legacy and Experimental
- SOA
- HINFO
- RP
- LOC
- DNAME
Start of Authority (required for every zone).
Additional Record Types
AFSDB - AFS Database
KX - Key Exchanger
RT - Route Through
DHCID - DHCP Identifier
OPENPGPKEY - OpenPGP Key
URI - Uniform Resource Identifier
EUI48 / EUI64 - MAC Addresses
Special Query Types
These types are used in queries but not stored in zone files:- AXFR (252): Zone transfer request
- IXFR (251): Incremental zone transfer request
- ANY (255): Request for all records
Record Type Reference Table
| Type | Number | Purpose | RFC |
|---|---|---|---|
| A | 1 | IPv4 address | RFC 1035 |
| NS | 2 | Name server | RFC 1035 |
| CNAME | 5 | Canonical name | RFC 1035 |
| SOA | 6 | Start of authority | RFC 1035 |
| PTR | 12 | Pointer | RFC 1035 |
| MX | 15 | Mail exchange | RFC 1035 |
| TXT | 16 | Text | RFC 1035 |
| AAAA | 28 | IPv6 address | RFC 3596 |
| SRV | 33 | Service | RFC 2762 |
| NAPTR | 35 | Naming authority pointer | RFC 2915 |
| DS | 43 | Delegation signer | RFC 4034 |
| SSHFP | 44 | SSH fingerprint | RFC 4255 |
| RRSIG | 46 | DNSSEC signature | RFC 4034 |
| NSEC | 47 | Next secure | RFC 4034 |
| DNSKEY | 48 | DNS public key | RFC 4034 |
| NSEC3 | 50 | Next secure v3 | RFC 5155 |
| TLSA | 52 | TLS authentication | RFC 6698 |
| SVCB | 64 | Service binding | RFC 9460 |
| HTTPS | 65 | HTTPS binding | RFC 9460 |
| CAA | 257 | Certification authority | RFC 6844 |
See Also
- Zone File Format - Zone file syntax and structure
- Zone Validation - Validation rules and tools