DNS record types quick reference

This quick reference brings together the DNS record types, from the basic concepts and the core records that point a domain to a server, through email and security records, to DNSSEC and rare records, with a short explanation and a practical example of each record. You can search for a record, filter by category, and copy it with one click.

Basic concepts

  • TTL

    The number of seconds DNS servers may keep an answer in their cache before they query the nameserver again. A high value reduces the number of queries, and a low value lets a change take effect sooner. Lowering the TTL before a change helps only when you do it early enough, at least as long before the change as the previous TTL.

    Example: www.example.com. 300 IN A 192.0.2.10

  • @

    Stands for the root domain (apex), meaning the zone name itself, for example example.com with no prefix. In many control panels, you enter @ in the name field to set a record for the root domain, and in some panels an empty field means the same.

    Example: @ 3600 IN A 192.0.2.10

  • *

    A wildcard record, which applies to every subdomain that is not defined in the zone, for example anything.example.com. The record does not apply to the root domain itself, or to a name that has any record, even of another type. A wildcard record is not related to an SSL certificate, and securing the subdomains also requires a certificate for *.example.com.

    Example: *.example.com. 3600 IN A 192.0.2.10

  • FQDN

    A fully qualified host name, written in a zone file with a trailing dot. In a zone file and in some control panels, a name without a trailing dot is treated as a relative name and the zone name is appended to it, so mail.example.com without a dot becomes mail.example.com.example.com. Most control panels add the dot automatically, and it is a good idea to check the result after you save.

    Example: example.com. 3600 IN MX 10 mail.example.com.

  • Propagation

    The time until a DNS change is visible to all visitors. The change is not sent out to other servers. Instead, DNS servers that already cached the old value keep returning it until it expires from their cache according to the TTL. A nameserver change at the registrar also depends on the TTL of the NS records in the TLD zone, which is usually long, for example 172800 seconds (48 hours).

    Example: example.com. 172800 IN NS ns1.example.com.

  • Glue

    The A and AAAA records of nameservers that sit inside the domain they serve, for example ns1.example.com for example.com. Without these records the nameserver cannot be found, so they are registered with the domain registrar and published in the TLD zone. When you change the address of such a nameserver, update the glue records at the registrar as well, not only in the zone.

    Example: ns1.example.com. 86400 IN A 192.0.2.53

Core records

  • A

    Points a host name to an IPv4 address, which browsers and other services use to find the server that hosts the website. The value must be an IP address, not a host name. You can set several A records for the same name, but DNS does not check whether the servers are available, so the address of a server that is down may cause problems for some visitors.

    Example: example.com. 3600 IN A 192.0.2.10

  • AAAA

    Points a host name to an IPv6 address, like an A record. Set it only when the server is actually reachable over IPv6, because visitors on networks that support IPv6 may prefer it, and an address that does not work may delay the website or keep it from loading.

    Example: example.com. 3600 IN AAAA 2001:db8::10

  • CNAME

    Sets an alias for another host name, and every query for the alias is answered according to the records of the target name. That is why a CNAME record cannot coexist with any other record of the same name, and cannot be set at the root domain, which always has SOA and NS records. The target must be a host name, not an IP address, and it is best to avoid chains of several CNAME records.

    Example: www.example.com. 3600 IN CNAME example.com.

  • ALIAS / ANAME

    A record type that is not part of the standard, which some DNS providers offer under different names, such as ALIAS, ANAME, or CNAME flattening. The provider resolves the addresses of the target name itself and returns them as A and AAAA records, so you can use the record at the root domain too, for example to point to an external service that provides a host name rather than an IP address. The syntax and behavior vary between providers, and the example is for illustration only.

    Example: example.com. 3600 IN ALIAS app.example.com.

  • NS

    Lists the nameservers responsible for the domain, or for a subdomain delegated to other servers. The list of nameservers for the domain is set at the domain registrar, and the records inside the zone should match it. Most registrars require at least two nameservers, and the target must be a host name, not an IP address or a name set as a CNAME.

    Example: example.com. 86400 IN NS ns1.example.com.

  • SOA

    A single record at the top of every zone that sets the primary nameserver, the email address of the person responsible for the zone, where the first dot replaces the @ sign, and the zone serial number. The serial number must increase with every change, so that secondary nameservers update their copy. The last field affects how long an answer saying that a name does not exist is cached, and in many control panels the record is managed automatically.

    Example: example.com. 3600 IN SOA ns1.example.com. hostmaster.example.com. 2026112401 7200 3600 1209600 3600

  • PTR

    Points an IP address to a host name, the reverse of an A record, and is also called a reverse DNS record. The record is set in a special zone, in-addr.arpa for IPv4 and ip6.arpa for IPv6, which is managed by the owner of the address range, usually the server provider, and not by the DNS provider of the domain. Many mail servers check that the sending server has a PTR record and that the name in it points back to the same address.

    Example: 10.2.0.192.in-addr.arpa. 3600 IN PTR mail.example.com.

Email

  • MX

    Lists the mail servers that receive email for the domain. The number before the name is the priority, and the server with the lowest number receives mail first. The target must be a host name with A or AAAA records, not an IP address or a name set as a CNAME. When there is no MX record, sending servers try to deliver mail to the address in the domain's A or AAAA records.

    Example: example.com. 3600 IN MX 10 mail.example.com.

  • MX (Null)

    A null MX record states that the domain does not accept email at all, using a single MX record with priority 0 and a dot instead of a host name. Sending servers return a failure message right away, instead of trying to deliver the message again and again. The record suits a domain used only for a website, together with an SPF record that forbids sending, such as v=spf1 -all.

    Example: example.com. 3600 IN MX 0 .

  • TXT (SPF)

    A TXT record that starts with v=spf1 and lists the servers authorized to send email on behalf of the domain. Each name may have only one SPF record, and two such records make the check fail, so an additional sending service is added to the existing record. The check is limited to 10 DNS lookups, such as include, a, mx, and redirect, and going over the limit makes the check fail. The -all ending marks senders that are not on the list as failing, and the ~all ending marks them as suspicious.

    Example: example.com. 3600 IN TXT "v=spf1 mx ip4:192.0.2.25 include:_spf.example.com ~all"

  • TXT (DKIM)

    Publishes the public key that receiving servers use to verify the digital signature on messages sent from the domain. The record name is made of a selector and the _domainkey prefix before the domain name, so you can keep several keys at the same time, for example a separate key for each sending service. A 2048-bit RSA key is longer than the limit of a TXT string, so it is split into several strings, and some sending services ask you to set a CNAME record instead, pointing to a key they manage.

    Example: selector1._domainkey.example.com. 3600 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."

  • TXT (DMARC)

    Sets what receiving servers do with a message that passed neither SPF nor DKIM in alignment with the domain in the sender address (From). The p=none policy is for monitoring only, p=quarantine marks such messages as suspicious, usually sending them to the spam folder, and p=reject rejects them. The rua tag sets an address for receiving aggregate reports, and the sp tag sets a separate policy for subdomains. It is best to start with the none policy, check in the reports that all legitimate sendin

    Example: _dmarc.example.com. 3600 IN TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"

  • TXT (BIMI)

    Publishes a link to the domain's logo in a dedicated SVG format, which some email apps show next to messages from the domain. The record requires a DMARC policy set to quarantine or reject, and some mailbox providers also require a certificate that verifies ownership of the logo. Support varies between mailbox providers, and setting the record does not guarantee that the logo is shown.

    Example: default._bimi.example.com. 3600 IN TXT "v=BIMI1; l=https://example.com/bimi/logo.svg; a=https://example.com/bimi/certificate.pem"

  • TXT (MTA-STS)

    Tells sending mail servers that the domain has an MTA-STS policy, which can require an encrypted connection with a valid certificate when mail is delivered. The policy itself is published in a file at https://mta-sts.example.com/.well-known/mta-sts.txt, and the record includes an ID that you change with every update of the file, so that sending servers load it again. It is best to start in testing mode and switch to enforce mode after testing.

    Example: _mta-sts.example.com. 3600 IN TXT "v=STSv1; id=2026112401"

  • TXT (TLS-RPT)

    Sets an address for receiving periodic reports from sending mail servers about failures in encrypted connections to the domain's mail servers. The record complements MTA-STS and DANE, and helps you spot a certificate or configuration problem before it delays or loses mail.

    Example: _smtp._tls.example.com. 3600 IN TXT "v=TLSRPTv1; rua=mailto:tlsrpt@example.com"

  • CNAME (autodiscover)

    Lets email apps, mainly Outlook, find the server settings automatically from the email address. The target depends on the email provider, so copy it exactly from the provider's instructions.

    Example: autodiscover.example.com. 3600 IN CNAME mail.example.com.

  • SRV (autodiscover)

    An alternative to the autodiscover CNAME record that specifies the server name and port where the automatic setup service is available. The record suits cases where the autodiscover name cannot be used, for example when the server certificate does not include it.

    Example: _autodiscover._tcp.example.com. 3600 IN SRV 0 0 443 mail.example.com.

  • CNAME (autoconfig)

    Lets email apps such as Thunderbird find the server settings automatically, using a settings file published under the autoconfig name. The target is a server that serves the settings file, usually the mail server or a server of the email provider.

    Example: autoconfig.example.com. 3600 IN CNAME mail.example.com.

  • SRV (submission)

    Tells email apps the server and port for sending mail. The same standard also defines records for receiving mail, such as _imaps._tcp and _pop3s._tcp. Not all email apps use these records, so they complement autodiscover and autoconfig rather than replace them.

    Example: _submission._tcp.example.com. 3600 IN SRV 0 1 587 mail.example.com.

Services and security

  • SRV

    Specifies the server and port where a particular service is available, such as telephony (SIP), chat, or a game server. The record name is made of the service name and the protocol, each starting with an underscore, and the values are the priority, a weight for load balancing between servers with the same priority, the port, and the host name. The target must be a host name, not a name set as a CNAME, and a dot instead of the target means that the service is not available.

    Example: _sip._tcp.example.com. 3600 IN SRV 10 60 5060 sip.example.com.

  • CAA

    Limits the certificate authorities (CAs) allowed to issue an SSL certificate for the domain. A CA checks the record before issuing, and when there is no CAA record on the name or on the domains above it, any CA may issue. You can set several issue records, one for each authorized CA, and they must include the CA that actually issues the website's certificates, otherwise certificate renewal fails. The number 0 is the flags field, and the value 128 marks the tag as critical, so a CA that does not

    Example: example.com. 3600 IN CAA 0 issue "letsencrypt.org"

  • CAA (issuewild)

    Sets which CAs may issue a wildcard certificate, which covers all subdomains at one level, for example *.example.com. When the record is set, it overrides the issue records for wildcard certificates, and the value ";" forbids issuing such certificates entirely.

    Example: example.com. 3600 IN CAA 0 issuewild ";"

  • CAA (iodef)

    Sets an address where CAs may report a certificate request that was refused because of the CAA policy. Not all CAs send such reports, so the record adds to your oversight and does not replace monitoring of the certificates issued for the domain.

    Example: example.com. 3600 IN CAA 0 iodef "mailto:security@example.com"

  • TXT

    Stores free text under a name, and is used for ownership verification, SPF, DKIM, and other settings. You can set several TXT records with the same name. Each string inside the record is limited to 255 characters, so a long value is split into several quoted strings, which are joined into one sequence with no space when the record is read. Many control panels split the value automatically, and to split it manually you can use the Long TXT record splitter (DKIM) tool.

    Example: example.com. 3600 IN TXT "v=spf1 ip4:192.0.2.0/24 include:_spf.example.com " "include:_spf2.example.com -all"

  • TXT (verification)

    Proves to an external service, such as a search engine's webmaster tool or an email provider, that the domain owner controls the domain. The service provides a unique value that you set in a TXT record, and such a record can coexist with other TXT records of the same name. Some services check the record from time to time, so it is best to keep it after verification.

    Example: example.com. 3600 IN TXT "site-verification=4f9a2c7e1b8d"

  • TXT (ACME)

    A temporary record named _acme-challenge, used to verify domain ownership when an SSL certificate is issued with the DNS method. At most CAs, a wildcard certificate can be issued only with this type of verification. The value changes with every renewal, so renewal usually runs automatically through the DNS provider's API, or through a CNAME record that points the _acme-challenge name to another zone.

    Example: _acme-challenge.example.com. 300 IN TXT "gfj9Xq2pLm7Rg85nMbvT4kZ0wQe1sYc3uHaD6fJ8xKo"

  • HTTPS

    Gives browsers information in advance about how to connect to the website, such as HTTP/3 support, address hints, and a key for encrypting the site name (ECH), and so may save a connection round trip. Unlike a CNAME, you can also set it at the root domain, and in alias mode, with priority 0, it points to another host name. Support in browsers and control panels is still partial, and the website must work properly without the record too.

    Example: example.com. 3600 IN HTTPS 1 . alpn=h2,h3 ipv4hint=192.0.2.10 ipv6hint=2001:db8::10

  • SVCB

    The general form of the HTTPS record, meant for other services and protocols. The record sets a target name, a port, and supported protocols, and is used, for example, for automatic discovery of encrypted DNS servers. Most websites do not need it.

    Example: _dns.example.com. 3600 IN SVCB 1 dns.example.com. alpn=dot port=853

  • TLSA

    Binds the TLS certificate of a service to its name (DANE), so a client can verify that the certificate the server presents is the one published in DNS. The record name includes the port and the protocol, and the three numbers are the usage, the part of the certificate that is checked, and the hash type. The values 3 1 1 mean a match against the SHA-256 hash of the public key in the server's own certificate. The record is valid only in a zone signed with DNSSEC, and it is used mainly to secure ma

    Example: _25._tcp.mail.example.com. 3600 IN TLSA 3 1 1 8f2c6d0e4b1a7f3e...9c7e3f5a

  • SSHFP

    Publishes the fingerprint of the server's SSH host key, so an SSH client can verify the server on the first connection instead of asking for manual confirmation. The values 4 2 mean an Ed25519 key and a SHA-256 hash, and the ssh-keygen -r command generates the records from the keys on the server. Verification works only when the VerifyHostKeyDNS option is enabled in the client, and it is reliable only in a zone signed with DNSSEC.

    Example: server.example.com. 3600 IN SSHFP 4 2 3d6f1e9a7c2b5e8d...b84e0f21

DNSSEC

  • DS

    Set at the domain registrar and published in the TLD zone, for example com, this record links the TLD to the key that signs the domain's zone. The DNSSEC chain of trust passes through this record. Caution: a DS record that does not match the active key, for example after a change of DNS provider, makes DNS servers that validate signatures return an error, and the domain becomes unavailable to a large share of visitors. Before you change DNS providers, remove the DS record and wait for it to expi

    Example: example.com. 86400 IN DS 12345 13 2 3a1f5c7e9b2d4f6a...e8c9d2

  • DNSKEY

    Publishes the public keys of the zone. The value 257 marks a key signing key (KSK), which the DS record points to, and the value 256 marks a zone signing key (ZSK), which signs the other records. Some providers use one key for both roles, and at most DNS providers the keys are created and rotated automatically when DNSSEC is enabled.

    Example: example.com. 3600 IN DNSKEY 257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0d...

  • RRSIG

    A digital signature over a set of records of the same type and name. Each signature has a start time and an expiration time, and the nameserver signs again before the expiration. An expired signature makes validation fail, so when you sign a zone manually, make sure that re-signing runs on a regular schedule.

    Example: example.com. 3600 IN RRSIG A 13 2 3600 20261224000000 20261124000000 12345 example.com. Kf8xR2vT...Lq9w==

  • NSEC

    Proves, with a signature, that a name or a record type does not exist, by pointing to the next name in the zone and listing the record types that exist at the current name. The drawback is that the records can be walked in sequence to get a list of all the names in the zone.

    Example: example.com. 3600 IN NSEC www.example.com. A NS SOA MX TXT AAAA RRSIG NSEC DNSKEY

  • NSEC3

    A version of NSEC that uses a hash of the names instead of the names themselves, and makes it harder to collect the list of names in the zone. The current recommendation is 0 additional iterations and no salt, because high values load the servers and add no significant protection.

    Example: q04jkcevqvmu85r014c7dkba38o0ji5r.example.com. 3600 IN NSEC3 1 0 0 - r53bq7cc2uvmubfu5ocmm6pers9tk9en A RRSIG

  • CDS / CDNSKEY

    Published in the domain's zone, these records signal the desired DS record to the registrar or to the TLD registry, so it can be updated automatically when a key is replaced, without a manual update at the registrar. A special value in the record lets you request removal of the DS record. Support depends on the registrar and the TLD.

    Example: example.com. 3600 IN CDS 12345 13 2 3a1f5c7e9b2d4f6a...e8c9d2

Rare and legacy records

  • DNAME

    Redirects all the names under a given name to another name tree, so that, for example, shop.old.example.com is redirected to shop.new.example.com. Unlike a CNAME, the record applies only to the names under the name, not to the name itself. Most control panels do not support it.

    Example: old.example.com. 3600 IN DNAME new.example.com.

  • HINFO

    Originally meant to describe the hardware type and operating system of a host. For security reasons, do not publish real information in it. Today nameservers use it mainly as a minimal answer to ANY queries, instead of returning all the records.

    Example: server.example.com. 3600 IN HINFO "PC" "OS"

  • LOC

    Publishes a geographic location for a host name, including latitude, longitude, altitude, and precision. The record is hardly used, and it has no effect on search engines or map services.

    Example: example.com. 3600 IN LOC 32 4 48.000 N 34 46 48.000 E 30m 10m

  • NAPTR

    Defines rules for converting a name to a service address, and is used mainly in internet telephony (VoIP) and in the ENUM system, which converts phone numbers to service addresses. It usually works together with SRV records, and outside telephony systems it is rare.

    Example: example.com. 3600 IN NAPTR 100 10 "S" "SIP+D2U" "" _sip._udp.example.com.

  • SPF

    A dedicated record type that was once defined for SPF and is deprecated in the current standard. Mail servers check SPF only in TXT records, so set the SPF value as a TXT record only. You can delete an SPF-type record left in the zone, provided that a TXT record with the same value exists.

    Example: example.com. 3600 IN SPF "v=spf1 mx -all"

  • RP

    Specifies the person responsible for a host name: an email address written as a DNS name, as in the SOA record, and the name of a TXT record with more details. The record is hardly used.

    Example: example.com. 3600 IN RP admin.example.com. contact.example.com.

DNS translates domain names into IP addresses and tells services such as email and SSL certificates how to work for the domain. Every record in a zone has a name, a TTL, a class (usually IN), a type, and a value. The examples on this page are written in zone file format, and DNS control panels show the same fields in separate columns. The names and addresses in the examples are reserved for documentation, long values such as keys and signatures are shortened, and you should replace them with your real values.

For creating and checking the common email and security records, you can use our dedicated tools: the SPF record generator and the SPF record checker, the DMARC record generator and the DMARC record checker, and the CAA record generator and the CAA record checker.

Before any DNS change, save the existing values so you can quickly go back to them, and after the change, check that the records are published as expected. On a domain signed with DNSSEC, take care of the DS record before you change DNS providers, otherwise the domain may stop working.

Did you know?

With our business email service, connecting your domain only requires updating the MX and TXT records, and your website keeps running with its current hosting provider.

Business email

DNS record types FAQ

How long does it take for a DNS change to take effect?

A DNS change usually takes effect within a few minutes to a few hours, depending on the TTL set for the record before the change. A nameserver change at the registrar usually takes effect within a few hours, and in some cases up to about 48 hours, depending on the TTL of the records in the TLD zone and in the cache of DNS servers. Until then, some visitors may still see the old value, and that is normal.

What is the difference between an A record and a CNAME record?

An A record points a name directly to an IP address, and a CNAME record points a name to another host name and gets the address from it. A CNAME record is convenient when the address of the target may change, for example with an external service, but it cannot be set at the root domain. To point the root domain to a host name, you can use ALIAS, ANAME, or CNAME flattening, when your DNS provider supports it.

How do I point a domain to a server?

Set an A record with the IPv4 address of the server for the root domain (@), and an AAAA record when the server has a working IPv6 address. For www, set a CNAME record that points to the root domain, or another A record with the same address. When the domain uses the nameservers of the hosting provider, the provider sets these records for you.

Which records does a domain need for its email to work properly?

To receive mail, the domain needs an MX record that points to the mail server, and for reliable sending that does not land in the spam folder, it is best to set SPF, DKIM, and DMARC as TXT records. Your email provider supplies the exact values, especially the DKIM key.

What TTL should I choose?

A value of 3600 seconds (one hour) suits most records, and stable records such as NS can have a value of 86400 seconds (one day). Before a planned change, such as a server move, it is best to lower the value to 300 seconds a day in advance, so the change takes effect within minutes. A very low value over a long period increases the number of queries to the nameservers, and lowering the value after the change does not make that change take effect sooner.

How do I check which DNS records are actually set for a domain?

The simplest way is the DNS record lookup tool, which shows the records published for the domain by type. The check is also useful after a change, to make sure the new value is published as expected before you move on to the next step.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement