Skip to content
VDS · Network, IP address and domains

DNS without magic: A, AAAA, CNAME, MX, TXT

What DNS record types exist, how they differ, how to read TTL, and how to check that changes have reached the internet.

Updated August 23, 2026

DNS is a directory: given a name, it returns an address or another name. Errors in it look like “the site won't open,” even though the machine is fully operational. It's easier to troubleshoot if you understand what each record type is responsible for.

Main types

TypeWhat it containsWhen it is needed
AIPv4 addressThe primary record for a website and any services
AAAAIPv6 addressNot used on Millida VDS machines: IPv6 is not provided
CNAMEAnother nameAliases such as www → the main domain
MXMail server and priorityReceiving mail for a domain
TXTArbitrary textSPF, DKIM, DMARC, ownership verification
NSZone name serversDomain delegation

The rule people trip over most often: you cannot place a CNAME at the domain root alongside other records. The root (example.com) can have only A. A CNAME alias is for subdomains.

What it looks like in practice

example.com.        A       203.0.113.10
www.example.com.    CNAME   example.com.
mail.example.com.   A       203.0.113.10
example.com.        MX  10  mail.example.com.
example.com.        TXT     "v=spf1 mx -all"

Get the address from the “Overview” of the control panel at /hosting/vds/m/<id>. The practical part of linking is described in the article linking a domain to a machine.

TTL and cache

TTL is the time in seconds during which a record is allowed to be stored in cache. A value of 3600 means that providers and browsers can serve the old answer for another hour after your edit.

Procedure for a planned migration: a day in advance, lower the TTL to 300; wait; change the records; make sure everything works; restore the previous TTL.

Verification

dig example.com A +short
dig www.example.com CNAME +short
dig example.com MX +short
dig example.com TXT +short
dig @8.8.8.8 example.com A +short

The last command queries a specific public resolver and bypasses your local cache. The full picture with the resolution path:

dig +trace example.com

Common errors

SymptomCauseSolution
Domain doesn't open from anywhereNS records are not pointed to the required providerCheck dig example.com NS at the registrar
Works for you, doesn't work for othersStale answer in cacheWait for the TTL to expire, check via @8.8.8.8
www doesn't openNo record for the subdomainAdd a CNAME to the root
Mail doesn't arriveNo MX, or it points to a CNAMEMX must point to a name with an A record
Mail disappeared after editing SPFTwo SPF records in the zoneLeave exactly one v=spf1 line

Change one record at a time and verify the result with the dig command. A batch edit of the zone followed by “why did everything go down” takes three times as long to troubleshoot.

For receiving email, you'll also need a correct reverse address record.