DNS record types
Every DNS record is made up of a name (such as www, or @ for the domain itself), a type that determines its function, a value, and a time to live (TTL) in seconds that sets how long other servers keep a copy of it before asking for it again. This article explains the types available in the DNS management portal; the same common types also appear in the Zone Editor in cPanel.
If you're planning to change a record that's currently in use (such as when moving your website to a new server), lower its TTL to 300 seconds a day before the change, then set it back to its usual value once the change has settled. That way, traffic moves to the new destination faster.
DNS record types you can manage
A-record
An A record maps hostnames to the host's IPv4 address. Enter the IP address.
AAAA-record
An AAAA record maps hostnames to the host's IPv6 address. Enter the IP address. Only add an AAAA record if the target server actually runs on IPv6; otherwise, connections may fail for visitors whose networks use IPv6.
SOA-record
This record is created automatically when you create a domain zone in the DNS management portal, and it holds the zone's basic details: the primary nameserver, the administrator's email, and the serial number, which increases with every change so secondary servers know the zone has changed. You can't create or delete this record.
NS-record
An NS record delegates a zone to the specified authoritative name servers. It can contain several servers, including the primary one. Enter the DNS server names. It's also used to delegate a subdomain (such as shop.example.com) to other nameservers.
NS records inside the zone don't, on their own, change who's responsible for your domain. That's determined by the nameservers registered with the domain's registrar, which you change from the Managing nameservers (NS) page if the domain is registered with us.
MX-record
An MX record specifies the servers that receive email for the domain and their order of preference. Enter:
- Domain: the mail server's name, such as
mail.example.com. It must be a name with an A record, not an IP address or an alias (CNAME). - Priority: a number; the lower the value, the higher the priority. Sending servers try the server with the lowest number first, and move on to the next one if it can't be reached.
To set up your domain's email fully (MX along with SPF, DKIM and DMARC records), see Email DNS records.
TXT-record
A TXT record holds free text in its Value field. Its best-known uses are email policies (SPF, DKIM and DMARC) and verifying domain ownership for external services or SSL certificate issuers. Copy the value exactly as the service gives it to you, without extra spaces at the beginning or end.
SRV-record
An SRV record is a general record for specifying the location of a service. It allows several servers to be used for a single domain. SRV records are only used by certain protocols, such as SIP and XMPP.
- Enter the Domain associated with the resource record.
- Enter the server's Priority and Weight. The lower the priority number, the higher the server's priority: the client tries to connect to the server with the lowest number first, and if it can't be reached, it tries the next server, and so on. If several servers have the same priority, requests are distributed among them by weight, so the one with the higher weight gets a bigger share of requests. If there's only one server with a given priority, its weight is usually set to 0.
- Enter the server Port the request will be sent to.
CNAME-record
A CNAME record defines an alias for another name, so DNS continues the lookup using the new name. Enter the Domain the request will be referred to. A common example: making www an alias for example.com.
- A CNAME record can't be placed on the domain itself (
@), only on subdomains; for the main domain, use an A or ALIAS record. - A CNAME record can't coexist with any other record of the same name (such as MX or TXT).
- A CNAME points to a name, not to an IP address.
ALIAS-record
ALIAS records are used to redirect a request to another alias domain name. In this case, unlike a CNAME record, the alias domain name can hold other resource records. Enter the Domain the request will be redirected to.
DNAME-record
A DNAME record is used to map or rename an entire subtree of the DNS namespace to another domain. Enter the Domain the request will be redirected to.
PTR-record
A PTR record maps an IP address to a domain name. Most mail servers check that the sending address has a PTR record and that it matches the name of the server the email was sent from; if the check fails, messages may be treated as spam or rejected. Enter the Name and Domain to be returned when the address is looked up. For our VPS server addresses, this record is set automatically, as described in Server name and reverse record (PTR).
CAA-record
A CAA record specifies the Certification Authorities (CAs) authorized to issue certificates for that domain. The purpose of the CAA record is to let domain owners specify which certificate authorities are allowed to issue a certificate for the domain. It also provides a way to set notification rules in case someone requests a certificate from an unauthorized authority. If there's no CAA record, any certificate authority is allowed to issue a certificate for the domain. If there is a CAA record, only the authority listed in the record can issue certificates for that hostname.
The Flags value can be either 0 or 128:
- 128 represents a critical property for certificate authorities. If the authority isn't aware of it, it isn't allowed to issue certificates.
- 0 represents a non-critical property. If the issuing authority doesn't understand this property, it can still issue a certificate.
Choose the Tag:
- issue — allows the authority named in the value to issue a certificate for the hostname;
- issuewild — allows the authority named in the value to issue a wildcard certificate for the hostname;
- iodef — lets you specify an email address or URL that can be used to report invalid certificate requests to the domain owner.
Enter the Value:
- When you choose "issue" or "issuewild" in the Tag field: enter the certificate authority's domain name. You can enter additional parameters separated by the ";" character. Example: "ca.example.net ; account=1", if the authority requires the client to specify an account number. Note: if you specify only the ";" character with no additional parameter in the CAA record, no certificate authority will issue the certificate;
- When you choose "iodef" in the Tag field: specifies an email address or the URL of a feedback page; additional parameters can't be used with it.
DS-record
DS records are used to secure delegations. This DS record points to a DNSKEY record in the delegated subzone. For more information, see Enabling DNSSEC.
- Enter the Key tag — a short numeric value that helps identify the KSK key.
- Choose the Algorithm used to generate the KSK key.
- Choose the Digest Type — the cryptographic hash algorithm used to create the digest value.
- Digest — a cryptographic hash value of the KSK key.
TLSA record
A TLSA record lets the domain owner confirm the validity of a certificate or digital signature using DNSSEC. With a TLSA record, you can store the fingerprint of a TLS or SSL certificate on your DNS server.
An example TLSA record:
_443._tcp.www.example.com IN TLSA 3 0 1 12B1B210D87C674F0C748E0E259CEB328C4A33A11F19467700EB2What each part of the example means:
- 443 — the TLS server port
- tcp — the protocol used by the TLS server
- www.example.com (external link) — the TLS server's domain name
- 3 — how the TLS server certificate is used
- 0 — which part of the certificate is used when comparing its contents with the TLSA value
- 1 — how the certificate data is compared with the TLSA data
- 12B1B210D87C674F0C748E0E259CEB328C4A33A11F19467700EB2 — the certificate data
When adding a TLSA record, specify the following:
- The record name in the format _port._protocol or _port._protocol.domain. Example:
_443._tcpor_443._tcp.www.example.com. - How the TLS server certificate is used:
- 0 — CA limit: the TLSA contains information about the certificate authority's (CA) certificate. The CA must be present in the validation chain when the TLS connection is established;
- 1 — certificate limit service: the TLSA contains information about the server certificate;
- 2 — trusted sources: the TLSA contains information about the root certificate;
- 3 — domain certificate: the TLSA contains information about the server certificate. This certificate must be the final certificate in the validation chain. This method allows self-signed certificates to be used.
- Which part of the certificate is used when comparing its contents with the TLSA value:
- 0 — the full certificate;
- 1 — the Public key only.
- How the certificate data is compared with the TLSA data:
- 0 — no hash: exact match;
- 1 — SHA-256: match of the SHA-256 hash value;
- 2 — SHA-512: match of the SHA-512 hash value.
- The certificate data.
How is this guide?
What is DNS?
An explanation of the Domain Name System (DNS), its role in translating domain names into IP addresses, and where your domain's records are managed.
DNS propagation and how to check it
Why DNS changes don't appear to every visitor right away, how long they take, and how to check they've gone through with simple commands and make them appear sooner.