DNS records are short instructions that decide where each request for your domain goes: the website to one server, email to another, verification strings to a third-party service. This guide explains the record types you will meet most often, with examples.
What a DNS record is made of
Every record has four basic parts:
- Name: the address the record belongs to.
@or an empty field means the domain itself (example.com);wwwmeanswww.example.com. - Type: the job of the record, such as A, CNAME or MX.
- Value: the target, for example an IP address.
- TTL: how many seconds the answer may be cached.
The most common record types
A and AAAA: point a name to an IP address
An A record points a name to an IPv4 address. It usually decides which server your website loads from. An AAAA record does the same for IPv6.
example.com. 3600 IN A 203.0.113.10
example.com. 3600 IN AAAA 2001:db8::10
CNAME: make one name an alias of another
A CNAME turns a subdomain into an alias of another hostname. If the target's IP changes, you do not need to touch the CNAME.
www.example.com. 3600 IN CNAME example.com.
shop.example.com. 3600 IN CNAME shop.saas-example.net.
You cannot put a CNAME on the bare domain (@), and a name with a CNAME cannot hold any other record. Use an A record for the root domain.
MX: where email is delivered
MX records tell sending servers which mail server accepts messages for user@example.com. Each MX has a priority, and the lower number wins. If the first server cannot be reached, the next one is tried.
example.com. 3600 IN MX 10 mail.example.com.
example.com. 3600 IN MX 20 backup-mail.example.com.
TXT: verification and email security
TXT records carry free text. Today they are mostly used for email security (SPF, DKIM, DMARC) and for proving domain ownership to services such as Google, Microsoft or SSL providers.
example.com. 3600 IN TXT "v=spf1 a mx ~all"
Other useful records
- NS: shows which nameservers manage the domain.
- SRV: announces the server and port of a specific service, such as some voice or chat apps.
- CAA: limits which certificate authorities may issue SSL for your domain. A wrong CAA record can block SSL issuance.
Which record for which job?
| Goal | Record type | Example value |
|---|---|---|
| Point the site to a server | A / AAAA | 203.0.113.10 |
| Point www to the root domain | CNAME | example.com. |
| Route email to a mail server | MX | 10 mail.example.com. |
| Prove ownership to a service | TXT | "verification=abc123" |
| Restrict who can issue SSL | CAA | 0 issue "ca-example.com" |
Where do I edit DNS records?
You edit records wherever your domain's nameservers point:
- If the domain points to your Voligen hosting: use Zone Editor in cPanel.
- If the domain uses Voligen's default nameservers and DNS Management is active: go to Client Area > Domains > Manage, open the DNS tab and use Add Record.
- If your nameservers are with another provider: make the change in that provider's panel.
Records only count where the domain's nameservers point. If your nameservers point elsewhere, DNS changes made in the Voligen panel have no effect.
Frequently asked questions
How long until a change takes effect?
It depends on the old record's TTL, usually somewhere between a few minutes and a few hours. Our DNS propagation guide explains the details.
Can I add more than one A record for the same name?
Yes. Visitors are then spread across the addresses. The site must be identical on every server, or people will see inconsistent results.
Can I have several SPF TXT records?
No. A domain should have exactly one SPF record. If you send through several services, merge them into a single SPF line.
Not sure about your records? Contact us or open a support ticket from the client area. To manage your site and email in one place, see our Linux hosting plans.