← Back to Home

📚 DNS Record Types Reference

Comprehensive guide to all DNS record types, RFCs, and use cases

Table of Contents

🌐 Basic & Common DNS Records
A (Address)
Type 1
Common
Maps a domain name to an IPv4 address. This is the most fundamental DNS record type used to resolve domain names to IP addresses.
example.com. IN A 192.0.2.1
RFC 1035
AAAA (IPv6 Address)
Type 28
Common
Maps a domain name to an IPv6 address. Essential for IPv6 connectivity.
example.com. IN AAAA 2001:db8::1
RFC 3596
CNAME (Canonical Name)
Type 5
Common
Creates an alias for a domain name, pointing to another canonical domain name. Cannot coexist with other record types at the same name.
www.example.com. IN CNAME example.com.
RFC 1035
MX (Mail Exchange)
Type 15
Common
Specifies mail servers for a domain and their priority. Lower priority values indicate preferred servers.
example.com. IN MX 10 mail.example.com.
RFC 1035
NS (Name Server)
Type 2
Common
Delegates a DNS zone to use the given authoritative name servers.
example.com. IN NS ns1.example.com.
RFC 1035
SOA (Start of Authority)
Type 6
Common
Provides authoritative information about a DNS zone including primary name server, zone administrator email, serial number, and timing parameters.
example.com. IN SOA ns1.example.com. admin.example.com. 2024010101 3600 1800 604800 86400
RFC 1035
TXT (Text)
Type 16
Common
Stores arbitrary text data. Commonly used for SPF, DKIM, domain verification, and other metadata.
example.com. IN TXT "v=spf1 include:_spf.example.com ~all"
RFC 1035
PTR (Pointer)
Type 12
Common
Used for reverse DNS lookups, mapping IP addresses back to domain names.
1.2.0.192.in-addr.arpa. IN PTR example.com.
RFC 1035
📧 Email Security Records
SPF (Sender Policy Framework)
TXT Record
Security
Specifies which mail servers are authorized to send email on behalf of a domain. Stored in TXT records starting with "v=spf1".
example.com. IN TXT "v=spf1 ip4:192.0.2.0/24 include:_spf.google.com ~all"
RFC 7208
DKIM (DomainKeys Identified Mail)
TXT Record
Security
Provides email authentication via cryptographic signatures. Public keys are published in TXT records at selector._domainkey.example.com.
default._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCS..."
RFC 6376
DMARC (Domain Message Authentication)
TXT Record
Security
Defines policy for handling emails that fail SPF or DKIM checks. Published at _dmarc.example.com.
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com"
RFC 7489
MTA-STS (SMTP TLS Reporting)
TXT Record
Security
Enables SMTP TLS security and reporting. Published at _mta-sts.example.com with accompanying policy file.
_mta-sts.example.com. IN TXT "v=STSv1; id=20240101T000000;"
RFC 8461
TLSA (DANE)
Type 52
Security
Associates TLS/SSL certificates with domain names using DANE (DNS-based Authentication of Named Entities). Published at _port._protocol.hostname.
_25._tcp.mail.example.com. IN TLSA 3 1 1
RFC 6698
TLS-RPT (TLS Reporting)
TXT Record
Security
Specifies where to send SMTP TLS failure reports. Published at _smtp._tls.example.com.
_smtp._tls.example.com. IN TXT "v=TLSRPTv1; rua=mailto:tlsrpt@example.com"
RFC 8460
🔒 DNSSEC Records
DNSKEY (DNS Public Key)
Type 48
DNSSEC
Contains public keys used to verify DNSSEC signatures. Can be Zone Signing Keys (ZSK) or Key Signing Keys (KSK).
example.com. IN DNSKEY 257 3 8 AwEAAb...
RFC 4034
RRSIG (Resource Record Signature)
Type 46
DNSSEC
Contains cryptographic signatures for DNS record sets, enabling verification of DNS data authenticity.
example.com. IN RRSIG A 8 2 3600 20240201000000 20240101000000 12345 example.com. ...
RFC 4034
DS (Delegation Signer)
Type 43
DNSSEC
Holds hash of a DNSKEY record, used in the chain of trust between parent and child zones.
example.com. IN DS 12345 8 2 ABC123...
RFC 4034
NSEC (Next Secure)
Type 47
DNSSEC
Provides authenticated denial of existence in DNSSEC by listing the next domain name in the zone.
example.com. IN NSEC mail.example.com. A MX RRSIG NSEC
RFC 4034
NSEC3 (Next Secure v3)
Type 50
DNSSEC
Improved version of NSEC that prevents zone enumeration by using hashed domain names.
example.com. IN NSEC3 1 0 10 AABBCCDD ...
RFC 5155
NSEC3PARAM (NSEC3 Parameters)
Type 51
DNSSEC
Specifies parameters for NSEC3 hashing algorithm used in the zone.
example.com. IN NSEC3PARAM 1 0 10 AABBCCDD
RFC 5155
CDS (Child DS)
Type 59
DNSSEC
Published by child zone to signal to parent zone to update DS records, enabling automated DNSSEC key rollovers.
example.com. IN CDS 12345 8 2 ABC123...
RFC 7344
CDNSKEY (Child DNSKEY)
Type 60
DNSSEC
Child copy of DNSKEY for signaling DS updates to parent zone.
example.com. IN CDNSKEY 257 3 8 AwEAAb...
RFC 7344
🔍 Service Discovery Records
SRV (Service)
Type 33
Common
Defines the location of servers for specified services. Format: _service._proto.name.
_sip._tcp.example.com. IN SRV 10 60 5060 sipserver.example.com.
RFC 2782
NAPTR (Naming Authority Pointer)
Type 35
Allows rewriting of domain names based on regular expressions. Used in ENUM and other dynamic services.
example.com. IN NAPTR 100 10 "U" "E2U+sip" "!^.*$!sip:info@example.com!" .
RFC 3403
SVCB (Service Binding)
Type 64
Modern
Modern service binding record that provides service parameters including alternative endpoints, ports, and protocols.
example.com. IN SVCB 1 example.com. alpn=h3,h2 port=443
RFC 9460
HTTPS (HTTPS Service)
Type 65
Modern
Special case of SVCB for HTTPS, enables HTTP/3, ECH, and other modern features.
example.com. IN HTTPS 1 . alpn=h3,h2 ipv4hint=192.0.2.1
RFC 9460
🚀 Advanced & Modern Records
CAA (Certification Authority Authorization)
Type 257
Security
Specifies which certificate authorities are authorized to issue certificates for a domain.
example.com. IN CAA 0 issue "letsencrypt.org"
RFC 8659
DNAME (Delegation Name)
Type 39
Creates an alias for an entire subtree of the domain name space. Like CNAME but works for subdomains.
example.com. IN DNAME example.net.
RFC 6672
LOC (Location)
Type 29
Specifies geographical location information (latitude, longitude, altitude) for a domain.
example.com. IN LOC 42 21 54 N 71 06 18 W -24m 30m
RFC 1876
CERT (Certificate)
Type 37
Security
Stores certificates in DNS (PGP, PKIX, SPKI, etc.).
example.com. IN CERT 1 0 0 MIICXAIBAAKBgQC...
RFC 4398
SSHFP (SSH Fingerprint)
Type 44
Security
Publishes SSH public key fingerprints to verify SSH host identity.
example.com. IN SSHFP 1 1 123456789abcdef...
RFC 4255
HINFO (Host Information)
Type 13
Provides host CPU and OS information. Rarely used due to security concerns.
example.com. IN HINFO "Intel Xeon" "Linux"
RFC 1035
RP (Responsible Person)
Type 17
Provides information about the responsible person for a domain.
example.com. IN RP admin.example.com. .
RFC 1183
URI (Uniform Resource Identifier)
Type 256
Maps a domain name to a URI with priority and weight values.
_http._tcp.example.com. IN URI 10 1 "http://example.com/"
RFC 7553
⚠️ Deprecated & Historical Records
SPF (Sender Policy Framework - Deprecated)
Type 99
Deprecated
Original SPF record type. DEPRECATED - use TXT records instead.
example.com. IN SPF "v=spf1 include:_spf.example.com ~all"
RFC 7208 (Deprecated)
MD (Mail Destination)
Type 3
Deprecated
Obsolete. Use MX records instead.
RFC 1035 (Obsolete)
MF (Mail Forwarder)
Type 4
Deprecated
Obsolete. Use MX records instead.
RFC 1035 (Obsolete)
MB (Mailbox)
Type 7
Deprecated
Experimental mailbox record. Not widely used.
RFC 1035
MG (Mail Group)
Type 8
Deprecated
Experimental mail group record. Not widely used.
RFC 1035