IP Lookup Tools DNS Record Types

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 1 RFC 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.

DNS Lookup

AAAA

Type 28 RFC 3596

Maps a domain name to an IPv6 address.

ornek.com. 300 IN AAAA 2001:db8::10

Note: Do not publish an AAAA record unless your server really listens on that IPv6 address: visitors using IPv6 cannot connect or see delays.

DNS Lookup

CNAME

Type 5 RFC 1035, RFC 2181

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.

DNS Lookup

HTTPS / SVCB

Type 65 RFC 9460

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 15 RFC 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.

Email Security

TXT

Type 16 RFC 1035

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.

Email Security

SPF

Type 99 RFC 4408, RFC 7208

The old, separate SPF record type. RFC 7208 deprecated it: SPF is published as a TXT record.

ornek.com. 3600 IN SPF "v=spf1 ip4:192.0.2.0/24 -all"

Note: Do not publish the separate SPF type; use v=spf1 in TXT only. If your zone provider still suggests an "SPF" type, ignore it.

Email Security

NS

Type 2 RFC 1035

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.

DNS Lookup

SOA

Type 6 RFC 1035, RFC 2308

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).

DNS Lookup

PTR

Type 12 RFC 1035

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).

Reverse DNS (PTR) Lookup

CAA

Type 257 RFC 8659

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.

SSL / TLS Check

DS

Type 43 RFC 4034

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.

DNSSEC Validation

DNSKEY

Type 48 RFC 4034

The public keys that validate the zone's DNSSEC signatures.

ornek.com. 3600 IN DNSKEY 257 3 13 mdsswUyr3DPW1...

Note: Flag 257 marks the key signing key (KSK) and 256 the zone signing key (ZSK). The DS record points at the KSK.

DNSSEC Validation

RRSIG

Type 46 RFC 4034

The DNSSEC signature of each record set. It has an inception and an expiration date.

ornek.com. 300 IN RRSIG A 13 2 300 20261120000000 20261021000000 12345 ornek.com. ...

Note: Signatures must be renewed before they expire; an expired signature makes the domain unresolvable for resolvers that validate DNSSEC.

DNSSEC Validation

NSEC / NSEC3

Type 47 RFC 4034, RFC 5155

Proves with a signature that a name (or record type) does not exist. NSEC3 (type 50) makes it harder to list the names in a zone (zone walking).

ornek.com. 3600 IN NSEC www.ornek.com. A NS SOA MX TXT AAAA RRSIG NSEC DNSKEY

Note: The provider that signs your zone generates them; they are not written by hand.

DNSSEC Validation

CDS / CDNSKEY

Type 59 RFC 7344, RFC 8078

Lets the child zone ask for the DS record in the parent zone to be updated (CDNSKEY is type 60). It automates key rollovers.

ornek.com. 3600 IN CDS 12345 13 2 49FD46E6C4B45C55D4AC...

Note: It only helps if your registrar or TLD operator scans for it; ask your registrar whether it is supported.

DNSSEC Validation

TLSA

Type 52 RFC 6698

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 44 RFC 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 33 RFC 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 35 RFC 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 39 RFC 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

NameExample valueWhat 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 v=DMARC1; p=quarantine; rua=mailto:[email protected] 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
_smtp._tls v=TLSRPTv1; rua=mailto:[email protected] 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.