Sooner or later every site owner ends up staring at a block of DNS records: lines copied from a registrar panel, a hosting email, or dig output. They look like alphabet soup, yet each line decides something real: where your website loads from, where your email goes, and who may speak for your domain.
The good news is that every record follows the same grammar. Learn the five parts of a record line and the common types, and you can read a whole zone file without panic. This guide walks through both with the free DNS Record Formatter and Explainer on Ovatly, which turns pasted records into clean, explained ones.
Contents
- Quick answer
- The five parts of every record
- The record types you will actually meet
- TTL: the caching timer
- Two quirks worth knowing: MX preferences and the SOA email
- How to read your records with the formatter, step by step
- Worked example: one A record, explained
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
A DNS record is one instruction line made of a name, a TTL, a class (almost always IN), a type, and a value. The type says what the instruction does: A and AAAA point a name at a server, CNAME at another name, MX routes email, TXT stores text other systems verify, NS names the authoritative servers, and SOA holds the zone's admin details. To read your own records, paste them into the DNS Record Formatter and Explainer: it validates each value, rewrites every line in one clean format, and explains each field in plain English. One honest limit: it works only on what you paste and never queries live DNS, so it cannot confirm a record is actually published.
The five parts of every record
Take a typical line:
shop.example.com. 300 IN A 203.0.113.10
Reading left to right: the name is shop.example.com., the host the record belongs to. The TTL is 300, the seconds other servers may cache this answer. The class is IN, short for internet, the class on nearly every record you will meet. The type is A. The value, 203.0.113.10, is the payload the type defines, here an IPv4 address.
Once you see the pattern, the order stops mattering much. The formatter accepts both dig order (name, TTL, class, type) and zone-file order (name, class, TTL, type), and handles lines that reuse the previous line's name, the way zone files leave it blank when it repeats.
The record types you will actually meet
A points a name to an IPv4 address. It is the record a browser follows to reach a web server, and the one you change when a site moves hosts.
AAAA does the same job for IPv6 addresses, and many domains carry both.
CNAME points a name at another name instead of an address. Point www at the bare domain, or at a service's host name, and the CNAME says: ask again over there.
MX routes email. Each MX value carries a preference number and a mail-server host name. Senders try the lowest preference first: that is how you declare a main server and its backups.
TXT stores a line of text attached to a name. Nothing displays it to visitors; other systems read it to verify domain ownership or check whether a mail server may send for your domain.
NS records name the authoritative name servers for the domain: the servers whose answers count as official.
SOA is the start-of-authority record, one per zone. It holds admin details: the primary name server and the administrator's mailbox, in the dotted form explained below.
Beyond those, the formatter also supports SRV (which host and port a service lives on), CAA (which authorities may issue certificates for the domain), and PTR (an address pointing back to a name). Anything outside the supported list is reported as unrecognized, never guessed at.
TTL: the caching timer
TTL, time to live, is how long resolvers may reuse an answer before asking again. Set 300 and a change can take up to five minutes to be seen everywhere, because caches hold the old answer until their copies expire.
Neither extreme is wrong. Lower values make changes take effect faster, useful the day before a server move. Higher values reduce lookup traffic and are steadier for records that rarely change. A common habit: lower the TTL a day ahead of a planned change, then raise it again afterwards.
Two quirks worth knowing: MX preferences and the SOA email
MX values fail validation more than any other. The preference must be a number from 0 to 65535, and the host must be a valid mail-server name, as in 10 mail.example.com. A bare IP address or a missing number gets flagged, and the error tells you which part failed.
The SOA quirk is the email address. DNS labels cannot contain @, so the admin mailbox is written with the first dot standing in for it: hostmaster.example.com means [email protected].
How to read your records with the formatter, step by step
- Copy your records from wherever they live: dig output, your registrar's record list, or a zone file. One record per line.
- Paste them into the DNS Record Formatter and Explainer.
- Read each formatted record card: the clean record, a plain-English summary, and a field-by-field explanation.
- Fix any lines listed under problems. The error message names what is wrong, so work through them one at a time.
Worked example: one A record, explained
Paste this line:
shop.example.com. 300 IN A 203.0.113.10
The formatted output is the same record in clean form, with the fields explained: Name is the host the record belongs to, TTL 300s is how long resolvers may cache it, and the IPv4 address is the server the name resolves to. The summary reads: points a name to an IPv4 address, the record a browser follows to reach a web server.
That is the whole loop. The record did not change; now you can say in plain words exactly what it instructs the internet to do.
Limitations and honest tradeoffs
The formatter is a reading tool for records you already have. It never queries live DNS, so it cannot confirm a record is actually published or has propagated. A line can be perfectly valid here and still not exist live, because it was never saved at the registrar.
Validation checks the shape of values: that an A value is a real IPv4 address, that an MX preference is in range, that SOA numbers parse. It cannot judge whether the value is right for your setup. A valid address that is the wrong server passes every check and still breaks the site.
Common mistakes
- Editing records without lowering the TTL first. Caches keep serving the old answer and the site looks broken for hours. Lower the TTL ahead of time.
- Guessing at an MX value. A missing preference number or an IP address instead of a host name will not route mail. MX wants a number and a name, as in
10 mail.example.com. - Reading the SOA email as a subdomain. The first dot is an
@in disguise. hostmaster.example.com is a mailbox, not a host. - Assuming a pasted record is live. Only a live lookup proves what resolvers actually see.
- Deleting TXT records because they look unused. They often carry ownership verification or mail-sending permissions. Other systems depend on them.
FAQs
Can the formatter look up the live records for my domain? No. It never queries live DNS. You paste records from dig output, a registrar panel or a zone file, and it validates and explains what you pasted. Confirming what is actually published worldwide needs a live lookup tool.
What does TTL actually control? TTL is how many seconds other servers may cache the record before asking again. A low TTL makes changes take effect faster after an edit. A high TTL reduces lookup traffic and is steadier for records that rarely change.
Why was my MX record rejected? MX values have two parts: a numeric preference from 0 to 65535 and a valid mail-server host name, for example 10 mail.example.com. If the number is missing, out of range, or the host name is malformed, the formatter flags the line instead of guessing.
Why is the email address in an SOA record written with a dot? DNS labels cannot contain the @ character, so the administrator mailbox is written with the first dot standing in for it. hostmaster.example.com means [email protected].
What happens if I paste a record type the tool does not know? It is reported as unrecognized rather than guessed at. The formatter supports A, AAAA, CNAME, MX, TXT, NS, SOA, SRV, CAA and PTR, and says so plainly when a line falls outside that list.
Conclusion
DNS stops being intimidating once every line reads as name, timer, type and value. Keep the DNS Record Formatter and Explainer nearby when you inherit a zone file or prepare a change, and each record becomes a sentence you can say aloud. When the job shifts from reading records to cleaning up addresses, our companion guide on checking a list of URLs for errors and duplicates covers the next chore. For more guides, see our Website and Webmaster Tools guides.
References
- Cloudflare Learning Center, on what DNS records are and how the common types work: https://www.cloudflare.com/learning/dns/dns-records/
- IANA, the DNS parameters registry that defines record types: https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml