DNS record types: A, AAAA, CNAME, MX, TXT, NS, SOA, PTR, CAA and more
The DNS record types you meet when managing a domain, on one page: what each one does, an example zone-file line and a common mistake. To see a domain's real records, use the DNS lookup tool.
You can filter the cards by category and copy the example line.
Record types
22 types
A
Type 1RFC 1035
Maps a domain name to an IPv4 address. It is the basic record for a website and most services.
ornek.com. 300 IN A 192.0.2.10
Note: Several A records can exist for the same name (simple load distribution through DNS). A change spreads in at most the old record's TTL.
Makes one name an alias of another; the resolver follows the target name and returns its records.
www.ornek.com. 300 IN CNAME ornek.com.
Note: No other record can exist at the same name. That is why a CNAME cannot be placed at the zone apex (ornek.com): the apex already holds SOA and NS. At the apex use A/AAAA, HTTPS or your provider's ALIAS/ANAME feature. MX and NS targets must not be CNAMEs either.
Tells the browser, before it connects, which protocols (HTTP/3, HTTP/2), addresses and ports a site is reachable on. SVCB is the general form (type 64) and HTTPS is the one for the web.
ornek.com. 300 IN HTTPS 1 . alpn="h3,h2"
Note: Providers such as Cloudflare add this record automatically. "AliasMode" (priority 0) works like a CNAME at the apex; priority 1 and above is "ServiceMode".
ALIAS / ANAME
Not a standard
Not a DNS standard: a provider-specific record some providers offer so that the zone apex can behave like a CNAME. The answer sent to resolvers is an A/AAAA record.
ornek.com. 300 ALIAS hedef.sirket.example.
Note: It is provider-specific. When moving DNS to another provider, decide its equivalent (A/AAAA or HTTPS AliasMode) beforehand.
MX
Type 15RFC 1035, RFC 5321, RFC 7505
Names the servers that accept email for the domain and the order in which they are tried (preference).
ornek.com. 3600 IN MX 10 mail.ornek.com.
Note: The lower preference number is tried first. The target must be a name, not an IP address, and must not be a CNAME. A domain that receives no email publishes a "null MX" (MX 0 .), RFC 7505.
Holds free text. SPF, DKIM, DMARC, MTA-STS and domain-ownership verification codes are all published in TXT (see the list below).
ornek.com. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
Note: A single string can be at most 255 bytes; long values (such as a DKIM key) are split into several quoted parts that the resolver joins. A name must have only one SPF record (v=spf1); a second one breaks SPF.
States which servers manage the domain's DNS records (the authoritative nameservers).
ornek.com. 86400 IN NS ns1.ornek.net.
Note: At least two nameservers on different networks are recommended. The NS records at the parent (the registrar) and in your zone must match; the target name cannot be a CNAME.
The zone's start record: the primary nameserver, the responsible person's email (with a dot instead of @), the serial number and the refresh timers.
ornek.com. 3600 IN SOA ns1.ornek.net. admin.ornek.net. 2026102601 7200 3600 1209600 3600
Note: Increase the serial on every change (most panels do it for you). The last field is how long a negative answer for a non-existent name may be cached (RFC 2308).
Maps an IP address back to a name (reverse DNS). It lives under in-addr.arpa for IPv4 and ip6.arpa for IPv6.
33.2.0.192.in-addr.arpa. 3600 IN PTR mail.ornek.com.
Note: The owner of the IP block (the hosting or internet service provider) adds it; it cannot be added in your domain's DNS panel. Servers that send email need it, and the PTR name is expected to resolve back to the same IP address (forward confirmation).
Restricts which certificate authorities (CAs) may issue certificates for the domain.
ornek.com. 3600 IN CAA 0 issue "letsencrypt.org"
Note: With no CAA record any CA may issue. The tags are issue, issuewild (wildcard certificates) and iodef (incident reporting). If you leave out the CA you use, certificate renewal fails.
Lives in the parent zone (for example .com) and ties the DNSSEC chain of trust to the child zone's DNSKEY.
ornek.com. 3600 IN DS 12345 13 2 49FD46E6C4B45C55D4AC...
Note: You usually add the DS record at your domain registrar, not in your DNS panel. If you change the key and do not update the DS, resolvers that validate DNSSEC cannot resolve your domain.
DANE: pins a service's TLS certificate or certificate authority in DNS (for example for an SMTP server).
_25._tcp.mail.ornek.com. 3600 IN TLSA 3 1 1 0123456789abcdef...
Note: It is only secure if the zone is signed with DNSSEC; a TLSA record in an unsigned zone cannot be trusted.
SSHFP
Type 44RFC 4255
Publishes the fingerprint of an SSH server key in DNS; a client can check the fingerprint here on first connection.
sunucu.ornek.com. 3600 IN SSHFP 4 2 123456789abcdef...
Note: Without DNSSEC it is informational only.
SRV
Type 33RFC 2782
States which server and port a service runs on (SIP, XMPP, Microsoft 365 and game servers, for example).
_sip._tcp.ornek.com. 3600 IN SRV 10 60 5060 sip.ornek.com.
Note: The fields are priority, weight, port and target name in that order. The target must not be a CNAME. The name has the form _service._protocol.domain.
NAPTR
Type 35RFC 3403
Rule-based name rewriting: used for telephone number mapping (ENUM) and in SIP/VoIP setups to decide which service is at which address.
ornek.com. 3600 IN NAPTR 100 10 "S" "SIP+D2U" "" _sip._udp.ornek.com.
Note: Most websites and email setups do not need it; publish it only if your VoIP provider asks for it.
DNAME
Type 39RFC 6672
Redirects every name below a name to the same position under another name (CNAME covers a single name, DNAME the whole subtree).
eski.ornek.com. 3600 IN DNAME yeni.ornek.com.
Note: DNAME redirects only the names below the owner name, not the owner name itself. Your provider may not support it.
Common uses of the TXT record
Name
Example value
What it does
@
v=spf1 include:_spf.google.com ~all
SPF (at the zone apex): states which servers may send email on behalf of the domain. Email Security
selector._domainkey
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4...
DKIM: the public key that verifies the signature of outgoing email. The "selector" comes from the sending system (for example google, selector1). Email Security
DMARC: states what the receiver should do when SPF and DKIM fail (p=) and where reports go (rua=). Email Security
_mta-sts
v=STSv1; id=20261026T000000
MTA-STS: announces that TLS is required for email delivery. The policy file is published at https://mta-sts.domain/.well-known/mta-sts.txt (RFC 8461). Email Security
TLS-RPT: where reports about TLS failures in email delivery are sent (RFC 8460). Email Security
default._bimi
v=BIMI1; l=https://ornek.com/logo.svg
BIMI: shows the sender's logo in email clients that support it. The DMARC policy must be quarantine or reject. Email Security
@
google-site-verification=abc123...
Domain ownership verification (Google, Microsoft, Apple and others; usually at the apex). It can be removed later unless the service keeps checking it.
What is on this page?
Record types in the categories web, email, names and zones, security and DNSSEC
For each type: the DNS type number, the defining RFC and a copyable example zone-file line
A common mistake and what to watch for
Common uses of the TXT record: SPF, DKIM, DMARC, MTA-STS, TLS-RPT, BIMI and domain verification
A link to the matching checking tool (DNS lookup, email security, DNSSEC, SSL and others)
What to watch for when writing records
The TTL (in seconds) says how long a record stays in caches. Lowering the TTL before a big change speeds up propagation.
A trailing dot (ornek.com.) marks a fully qualified name. In some panels you do not type the dot because the panel adds the domain itself: check what your panel expects.
TXT values are written in quotes; most panels add the quotes themselves, so do not add a second pair.
Verify the result of a change with the DNS propagation tool and the DNS lookup report.
Frequently asked questions
What is the difference between a CNAME and an A record?
An A record maps a name directly to an IPv4 address. A CNAME makes a name an alias of another name; the resolver follows the target and takes its records. When you point at a service whose IP address can change (a CDN, for example), a CNAME helps because you do not need to know the address.
Why can I not put a CNAME on the root domain?
The root holds the SOA and NS records, and a CNAME cannot share a name with any other record. At the root use A/AAAA, HTTPS or your provider's ALIAS/ANAME record.
Can MX and TXT records share a name?
Yes. Different types can share a name; what is forbidden is a CNAME sharing a name with another type.
Which record type should I use for SPF?
TXT. The separate SPF type (99) was deprecated by RFC 7208.
Where do I add a PTR record?
At the organization that gave you the IP address (the hosting or internet service provider). It cannot be added in your domain's DNS panel. The reverse DNS tool shows the current record and its forward confirmation.
CopiedSectionCould not get the result. Reload the page and try again.Switch to light themeSwitch to dark themeOpen menuClose menu