DNS Records Explained for Website Owners: A Practical Reference for A, CNAME, MX, and TXT Records
DNSdomain managementA recordsCNAME recordsMX recordswebsite launch

DNS Records Explained for Website Owners: A Practical Reference for A, CNAME, MX, and TXT Records

HHost Free Sites Editorial Team
2026-11-30
7 min read

Understand A, CNAME, MX, TXT, AAAA, and nameserver records with practical DNS setup, review, and troubleshooting steps.

DNS records connect your domain name to a website, email service, verification tool, or other destination. This practical reference explains the main DNS record types, shows which records a typical site needs, and gives you a safe workflow for checking changes whenever you launch a site, add email, move hosting, or troubleshoot a domain.

Overview

DNS, or the Domain Name System, translates human-readable domain names such as example.com into technical destinations that browsers and online services can use. Your domain registrar, hosting provider, or dedicated DNS provider usually gives you a control panel where these instructions are stored.

A DNS record is not the website itself. It is a direction. An A record can direct a domain to an IPv4 address, while an MX record tells email systems where to deliver messages. A CNAME record creates an alias for another hostname, and a TXT record stores text used for verification or email authentication.

For a basic website, you may need only an A record, an AAAA record, or a CNAME record. Email, custom subdomains, analytics tools, search platforms, and security services can add more records. The correct setup depends on the services connected to your domain, so copy values from the service that you are configuring rather than guessing them.

If you are still deciding where to host a new site, the guide to choosing free website hosting explains how hosting, SSL, storage, and custom domains fit together. DNS is the connection layer between the domain and those services.

What to track

Keep a simple record of every hostname, record type, destination, purpose, and date of change. This makes future troubleshooting safer, especially when several people manage the domain or when you move from one host to another.

RecordWhat it doesCommon useImportant detail
APoints a hostname to an IPv4 address.Connecting a domain or subdomain to a web server.Use the IPv4 address supplied by your hosting provider.
AAAAPoints a hostname to an IPv6 address.Connecting a site to an IPv6-capable server.It is separate from an A record; one does not replace the other.
CNAMEAliases one hostname to another hostname.Connecting www, a hosted landing page, or a third-party service.It normally points to a hostname, not an IP address.
MXSpecifies which mail servers receive email.Connecting a custom-domain mailbox.Priority values determine the preferred delivery route when multiple records exist.
TXTStores text for verification or policy instructions.Service verification and email authentication.Use the exact value supplied by the service, including required punctuation.
NSIdentifies the authoritative nameservers for a domain.Delegating DNS management to a provider.Changing nameservers can replace the DNS zone managed at the previous provider.

A records and CNAME records

The difference between an A record and a CNAME record is a frequent source of confusion. An A record points directly to an IPv4 address, such as the address provided by a web host. A CNAME points to another domain name, such as a host-provided target. If your provider says to point www.example.com to sites.provider.example, that is generally a CNAME-style instruction. If it gives you an IP address, it is generally an A-record instruction.

Do not add a second record simply because it sounds more complete. Follow the host's setup instructions for each hostname. Some DNS panels also automatically append your domain name to a value, so read the panel's field labels and examples before saving.

MX records

An MX record is for email delivery, not website hosting. If you add or replace MX records, messages sent to your domain may be routed differently. Before changing them, list the mail service currently in use and preserve any records that are still required. Website records and email records can coexist, but they serve different purposes.

TXT records

TXT records are commonly used when a service asks you to prove control of a domain. They can also carry email-authentication instructions. Treat long TXT values as exact strings: do not remove quotation marks, spaces, underscores, or other characters unless the DNS provider's instructions specifically require a different format.

Nameservers

Nameservers sit above individual records. They tell the internet which DNS provider has the authoritative instructions for your domain. If your registrar uses one provider's nameservers but you edit records in a different provider's dashboard, your changes may not affect the live domain. Confirm the active nameservers before troubleshooting an individual record.

Cadence and checkpoints

DNS does not usually need daily attention, but it benefits from a lightweight review schedule. Use these checkpoints:

  • At launch: Confirm the nameservers, root-domain record, www record, SSL status, and any required verification records. Test the site with and without www if both versions are intended to work.
  • After a hosting move: Compare the old and new values before editing. Change only the records required for the new host, then test the website, forms, and email separately.
  • When adding email: Check MX records first, then add the provider's TXT records for verification or authentication. Send and receive test messages using more than one mailbox when possible.
  • Monthly or quarterly: Review the record list against your current services. Remove records for products that have been retired only after confirming they are no longer needed.
  • Before domain renewal or ownership changes: Export or document the DNS zone, note who controls the registrar account, and verify that recovery details are current.

For a broader launch sequence, use the website launch checklist for beginners. It places DNS alongside domain registration, hosting, SSL, testing, and indexing rather than treating it as an isolated task.

How to interpret changes

When a DNS change is saved, the panel may show it immediately, but different networks and devices can continue using earlier information for a while. This is often described as DNS propagation or caching. The practical response is to test from more than one network and avoid making repeated edits simply because one device has not updated yet.

Start troubleshooting at the right level:

  1. Check nameservers. Make sure the domain delegates DNS to the provider where you made the edit.
  2. Check the exact hostname. The root domain, www, and a subdomain such as blog can have different records.
  3. Check the record type and value. An IP address belongs in an A or AAAA record; a hostname target generally belongs in a CNAME record.
  4. Check for conflicts. Look for duplicate or contradictory records on the same hostname, particularly when switching providers.
  5. Test the affected service. A website loading does not prove that email works, and a verified TXT record does not prove that the site points to the correct host.

Use a reputable DNS lookup tool, your provider's diagnostic feature, or command-line tools such as dig if you are comfortable with them. Compare the returned record with the value supplied by your host or service. Avoid relying on a single browser session, because browser, operating-system, router, and network caches can produce different results.

Common mistakes include editing the wrong DNS dashboard, entering a full domain name twice, using an A record where a CNAME is required, deleting MX records while trying to fix a website, and changing several records at once without documenting the original values. Make one related change at a time, save a copy of the previous configuration, and write down the reason for each edit.

When to revisit

Revisit this DNS reference whenever you connect a new domain, launch a subdomain, change web hosts, add or replace email, install a third-party service, or receive a domain-verification request. A quarterly review is also useful for small business sites and personal projects with several connected tools.

During each review, confirm five things: who controls the registrar account, which nameservers are active, which records point to the website, which MX records support email, and which TXT records belong to services you still use. Remove obsolete entries cautiously and keep an export or written inventory before making major changes.

Finish with a short test checklist:

  • Open the root domain and the preferred www version.
  • Check that HTTPS and the expected SSL certificate work.
  • Test important forms and landing pages.
  • Send and receive a test email if the domain handles mail.
  • Confirm any search, analytics, or verification service that depends on DNS.
  • Record the date, changed values, and observed result.

DNS is easiest to manage when it is treated as a small, documented system rather than a one-time launch task. Pair this review with the broken links and redirects audit workflow and a regular site performance check so domain, hosting, and visitor-facing behavior stay aligned.

Related Topics

#DNS#domain management#A records#CNAME records#MX records#website launch
H

Host Free Sites Editorial Team

Web Hosting and Site Building Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.