SEO done by AI, checked by humans, approved by you. See how it works

DNS Records Explained for Beginners: 6 Records, 1 Example

DNS records explained for beginners: nameservers, A, AAAA, CNAME, MX, and TXT in one example zone — read your DNS panel without breaking anything.

Follow one name through six rows: each record answers a single question.

DNS records are the rows in your domain's zone file, and each row answers one question about your name. Six record types cover nearly every job a beginner meets, from pointing a site to proving ownership.

This guide reads them in one example zone, so you can follow every value without guessing. Those records answer lookups for 411.6 million registered names (DNIB, 2026).

Nameservers sit above the records: they choose which provider answers for your domain at all. Change the nameservers and the whole zone moves; change one record and only that job moves.

Summary

  • DNS is a lookup system: a name goes in, and an address or a mail server comes out.
  • Six record types do the work: A, AAAA, CNAME, MX, TXT, and NS, each with one job.
  • Nameservers are set at your registrar, not in the zone, and they pick the DNS provider.
  • Cache time sets how long resolvers keep an answer, so old values rule the wait after a change.
  • One example zone runs through this guide: example.com, with documentation addresses only.

The One Example Zone

TypeNameValueJob
A@192.0.2.1Points example.com at an IPv4 address
AAAA@2001:db8::1Points example.com at an IPv6 address
CNAMEwwwexample.comMakes www an alias of the bare domain
MX@mail.example.com (priority 10)Sends mail to the mail server
TXT@v=spf1 include:mail.example.com ~allLists senders allowed to mail for the domain
NS@ns1.example.netNames a server that answers for the zone

Table 1. Example zone for example.com, with documentation addresses from Cloudflare.

Addresses 192.0.2.1 and 2001:db8::1 belong to documentation ranges, so no real server sits behind them. Cloudflare uses the same pair in its own examples, which keeps this zone checkable against its docs.

Read the table row by row: name picks the hostname, type picks the job, and value holds the answer.

Real panels add a fourth column for TTL, which decides how long each answer stays cached.

All six rows from the example zone, with the same values the guide uses.

Nameservers: Who Answers for Your Domain

Every domain delegates its DNS to nameservers, and the registrar holds that delegation. Typical registrars list two or more nameserver hostnames per domain, such as ns1 and ns2.

Visitors never see those names directly: resolvers ask the parent zone first, then follow the delegation. Switch nameservers at the registrar and a different provider starts answering every lookup for the domain.

That move replaces the whole zone, so mail and verification records must already exist at the new provider. Keep that rule in mind before any switch: a missing MX row silences mail the moment delegation changes.

Registration moves and DNS moves are separate jobs, as our How to Transfer a Domain to Another Registrar Without Downtime explains step by step.

A and AAAA: Name to Address

An A record maps a name to one IPv4 address, the four-number address servers still use most. AAAA does the same job for IPv6, the longer address format newer networks prefer.

Name @ means the bare domain itself, while www or blog names a subdomain of it. One name can hold several A records at once, which lets busy sites spread visitors across servers.

Point the record at the wrong address and visitors reach a stranger's server or nothing at all. Always copy the address from your host's own panel, never from a guide that lists an example.

CNAME: Name to Another Name

A CNAME maps one name to another name, never to an address. Hosts use it for www, so www.example.com follows whatever example.com points at today.

Change the target once and every alias follows, which makes CNAME the low-maintenance choice. No name can hold a CNAME beside other records, so the bare domain usually takes an A record instead.

Cloudflare bends that rule with CNAME flattening, which answers a CNAME at the apex as plain A records. Chains of CNAME records work, but each hop adds a lookup, so keep chains short.

MX: Where Mail Goes

An MX record names the mail server that accepts mail for your domain. Each MX record carries a priority number, and lower numbers are tried first.

Mail servers need a hostname as the target, not a bare IP address. Delete the MX row and mail has nowhere to go, even while the website still loads.

Two MX records from one provider give mail a backup when the first server stays silent.

TXT: Notes That Prove Things

A TXT record stores plain text in the zone, and other services read it as proof. Mail authentication lives here: SPF lists permitted senders, DKIM signs messages, and DMARC sets policy.

Certificate issuers also use TXT records, asking you to publish a code that proves control. Quotes around TXT content appear automatically on Cloudflare when you save a value without them.

Mismatched quotes cause validation errors, so paste TXT values exactly as your provider shows them.

The source page defines A, AAAA, CNAME, MX, and TXT in its own words.

TTL and Propagation: Why Changes Wait

TTL means time to live, and it counts in seconds on every record. Resolvers cache an answer for its TTL, then ask again once that countdown ends.

Resolvers never hurry: the old TTL governs the wait, not the new one you just saved. Shorten the TTL a day before a planned move, then change the record when caches have emptied.

Record changes usually clear within minutes to an hour, while nameserver changes take longer (Nomlen, 2026). Registrars commonly quote up to 24 to 48 hours for a nameserver change to settle everywhere (Nomlen, 2026).

Caches expire on their own clocks: every resolver re-asks only when its stored answer runs out.

How to Read Your Own DNS Panel

  • Find the nameservers first: the panel names the provider whose zone you are reading.
  • Read the @ rows: they govern the bare domain itself.
  • Follow www: a CNAME there means it tracks the bare domain.
  • Check MX before touching anything: mail depends on rows you may not see at first.
  • Note the TTL column: it tells you how long any fix will take to show.

Edit only rows you understand, and copy the zone before changing a live domain.

Five Mistakes That Break a Site

  • CNAME at the apex: it fights the NS and SOA rows that already live there.
  • Deleting MX rows during a move: mail stops while the site looks fine.
  • Typing an IP address by hand: one wrong digit sends visitors elsewhere.
  • Editing the wrong zone: two providers can both show a zone for one domain.
  • Forgetting www: the bare domain loads while www shows an error page.

Before You Change Anything

Copy the zone first, either as an export or as screenshots of every row. Lower the TTL on rows you plan to change, then wait out the old value.

Make one change at a time, and check it before moving to the next row.

What to Do Next

Open your own DNS panel now and match each row against the six types above. Start with nameservers, then A, then MX: those three rows decide whether site and mail both work.

For the market around the names you manage, see our complete guide to buying and selling domain names.

Fake DNS mail targets new owners too: our Domain Scams to Watch For: Fake Appraisals, Phishing Transfer Emails, and Stolen Names lists the patterns.

How to Point a Domain to Your Web Host: Nameservers or A Record, Step by Step.

What Is Domain Privacy Protection and Is It Worth Paying For?

Frequently Asked Questions

What is a DNS record?

Each record is one row in your domain's zone, with a name, a type, a value, and a TTL. Those rows tell resolvers where to find your site, your mail server, or your proof of ownership.

What does TTL mean?

Time to live, counted in seconds, sets how long resolvers cache an answer. Short TTLs spread changes fast, while long TTLs make lookups quicker.

Can I use a CNAME for my bare domain?

Standard DNS forbids it, because other records already live at the apex. Flattening on Cloudflare answers it as A records instead, which works on its platform.

Why does my site still show the old host?

Somewhere, a resolver still serves the cached answer until its TTL expires. Wait out the old TTL, then clear your browser cache before judging the change.

Do I need to understand DNS to own a domain?

No, but reading six record types saves you from the two expensive mistakes: lost mail and dead sites. Keep this guide beside your panel the first time you edit a row.

Methodology

Record definitions come from Cloudflare's DNS documentation, read on 26 November 2026.

Propagation timing follows the TTL rules in that documentation plus a 2026 measurement of nameserver delays.

Example values use documentation addresses only, so no live domain was probed for this guide.

Market figures in this guide trace to our statistics article, which cites DNIB directly.

References

Bagi saya, membangun website adalah hobi. Itu yang membuat ketika saya mengerjakan proyek-proyek pembuatan website, seperti selalu berenergi tinggi. Saya tidak merasa lelah. Saya mendapat kebahagian …

Post a Comment

© ‧ List of Domains. All rights reserved. Developed by Jago Desain