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
| Type | What it contains | When it is needed |
|---|---|---|
| A | IPv4 address | The primary record for a website and any services |
| AAAA | IPv6 address | Not used on Millida VDS machines: IPv6 is not provided |
| CNAME | Another name | Aliases such as www → the main domain |
| MX | Mail server and priority | Receiving mail for a domain |
| TXT | Arbitrary text | SPF, DKIM, DMARC, ownership verification |
| NS | Zone name servers | Domain 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
| Symptom | Cause | Solution |
|---|---|---|
| Domain doesn't open from anywhere | NS records are not pointed to the required provider | Check dig example.com NS at the registrar |
| Works for you, doesn't work for others | Stale answer in cache | Wait for the TTL to expire, check via @8.8.8.8 |
www doesn't open | No record for the subdomain | Add a CNAME to the root |
| Mail doesn't arrive | No MX, or it points to a CNAME | MX must point to a name with an A record |
| Mail disappeared after editing SPF | Two SPF records in the zone | Leave exactly one v=spf1 line |
Change one record at a time and verify the result with the
digcommand. 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.