DNS Settings Explained: A Practical Guide to A, CNAME, MX, TXT, and NS Records
DNSdomainsemail setuphostingwebsite troubleshooting

DNS Settings Explained: A Practical Guide to A, CNAME, MX, TXT, and NS Records

CClear Instruction Hub
2026-11-28
7 min read

Learn what A, CNAME, MX, TXT, and NS records do, how to configure them safely, and how to monitor DNS changes over time.

DNS records tell the internet where to find your website, email, and connected services. This practical DNS settings guide explains what A, CNAME, MX, TXT, and NS records do, where each one should point, how to add them safely, and how to check changes when a domain, host, email provider, or verification tool is updated.

Overview

The Domain Name System, or DNS, translates a human-readable domain such as example.com into destinations that computers can use. A DNS record is a rule stored in a DNS management system. Depending on the record type, that rule can direct web traffic, identify an email server, prove domain ownership, or delegate control of the domain’s DNS.

Your domain registrar and hosting provider may be the same company, but they do not always perform the same job. The registrar manages the domain registration. A DNS provider hosts the DNS zone and publishes its records. Your web host serves website files. Your email provider handles mail. Before editing anything, identify which dashboard currently manages the authoritative DNS records. Editing the wrong panel will not change the live domain.

A typical setup may need an A record for the root domain, a CNAME record for www, MX records for email, and TXT records for verification or email authentication. Names, required values, and instructions vary by provider, so use the exact destination supplied by the service you are connecting.

Quick reference

RecordMain purposeCommon example
APoints a name to an IPv4 address@ → 203.0.113.10
CNAMEPoints one hostname to another hostnamewww → example.com
MXSpecifies mail servers for a domain@ → mail.provider.example
TXTStores text used for verification or policy data@ → verification=value
NSIdentifies the authoritative DNS serversns1.dns-provider.example

What to track

A records: direct website destinations

An A record maps a hostname to an IPv4 address. The host or name is often shown as @ for the bare domain, although some panels display the full domain or leave the field blank. The value is an IP address supplied by your hosting provider.

Use an A record when the service gives you a fixed IPv4 address. Do not enter a URL such as https://example.com in an A record. If your provider supplies an IPv6 address, it may require an AAAA record instead. A common website setup uses one A record for the root domain and a separate CNAME for www, but follow the host’s instructions rather than copying a pattern blindly.

CNAME records: aliases between hostnames

A CNAME points one hostname to another hostname. For example, www might point to example.com, or a service-specific hostname supplied by a hosting platform. The destination is a hostname, not an IP address and not a complete web URL.

A CNAME cannot normally coexist with other record types at the same exact hostname. If www already has an A record, review the provider’s instructions before replacing or adding anything. Avoid creating a CNAME loop, such as one hostname pointing back to itself or two names pointing to each other.

MX records: receiving domain email

MX records tell sending mail servers where to deliver messages for your domain. Email providers commonly require more than one MX record, each with a destination hostname and a priority number. Lower numerical priority generally indicates that a server should be tried before one with a higher number, but use the provider’s stated values.

Enter the mail destination exactly as provided. Do not replace an existing MX record simply because a new one looks similar. If you are moving email providers, the old and new records require a planned transition. Remove obsolete MX records only after confirming that the new service is ready and that important mailboxes have been tested.

TXT records: verification and authentication

TXT records hold text strings. Services use them to verify domain ownership, authorize sending systems, or publish other configuration information. A verification service may ask you to create a TXT record at the root domain, while another may specify a host such as _service.

TXT values can be long and may include punctuation, equals signs, or quotation marks. Copy the value carefully. Some DNS panels add quotation marks automatically; others expect you to omit them. Do not alter a value to make it look cleaner. For email authentication, keep a written record of which service each TXT entry supports. A separate guide to SPF, DKIM, and DMARC domain email authentication can help you manage those records as a group.

NS records: delegation and DNS ownership

NS records identify the authoritative name servers for a domain or delegated subdomain. They are different from the records used to point a website or mail service. Changing the domain’s name servers can move control of the entire DNS zone to another provider, so treat this as a higher-impact change than adding an A, CNAME, MX, or TXT record.

Before changing NS records, copy the existing DNS zone and recreate necessary records at the new provider. Missing MX, TXT, or verification records can interrupt email or connected services even if the website itself appears to work.

Cadence and checkpoints

Use this step-by-step workflow whenever you connect a service or change hosting:

  1. Map the current setup. Record the registrar, authoritative DNS provider, website host, email provider, and any services that verify the domain.
  2. Export or copy existing records. Save record type, name, value, priority, and TTL where available. This gives you a rollback reference.
  3. Read the destination provider’s instructions. Confirm whether it requires an A, CNAME, MX, TXT, or another record. Check the exact hostname and whether the panel expects @ or the full domain.
  4. Check for conflicts. Look for duplicate A records, an existing CNAME at the same name, old MX records, or TXT entries that belong to a service you still use.
  5. Make the smallest change. Add or edit only the records required for the task. Leave unrelated records untouched.
  6. Test each dependency. Check the website at both the root domain and intended subdomains, send and receive test email, and repeat any domain verification process.
  7. Document the result. Note the date, reason for the change, provider instructions, and final values.

Review critical DNS records monthly or quarterly as part of a domain and hosting checklist. A monthly review is useful for active projects with frequent integrations. A quarterly review may be sufficient for a stable site. Review immediately before and after a host migration, domain transfer, email-provider change, major website launch, or security configuration update. For broader preparation, use this domain renewal and transfer checklist.

How to interpret changes

DNS changes do not always appear everywhere at once. DNS resolvers can keep previous answers in their cache until the record’s TTL expires, and different networks may refresh at different times. A successful result from one device does not prove that every resolver has updated.

Check records from more than one network or use a reputable DNS lookup tool. Compare the record type, hostname, value, and, for MX records, priority. If the result is old, wait for caching to clear rather than repeatedly changing the record. Repeated edits can make troubleshooting harder.

Use symptoms to narrow the problem:

  • Website does not load: verify the A or AAAA value, the www CNAME, the hosting account, and whether the domain is using the expected name servers.
  • Website loads but SSL fails: confirm that the domain points to the intended host and that the host has issued a certificate for every required hostname. DNS alone does not create an SSL certificate.
  • Email is not delivered: inspect MX records first, then check the mailbox configuration and email authentication records.
  • Verification remains pending: confirm the exact TXT or CNAME name and value, remove accidental spaces, and check that the record was added at the authoritative DNS provider.
  • Only some people see the change: compare results across networks and allow for resolver caching before making another edit.

When troubleshooting, take screenshots or export records before changing them. If a migration is involved, test the site, administrative login, contact forms, outgoing mail, incoming mail, and third-party integrations separately.

When to revisit

Revisit this DNS settings guide whenever you add a subdomain, connect a marketing or analytics service, change hosting, move email, renew or transfer a domain, or receive new verification instructions. Make a scheduled review part of your quarterly website maintenance even when nothing appears broken. Services can be retired, ownership can change, and old records can remain long after their original purpose is forgotten.

Before each review, create a simple inventory with these columns: record type, name, value, purpose, provider, date checked, and owner. Mark records that are required for the website, email, security, or verification. Ask whether each entry is still needed and whether its destination matches the current service. Do not delete an unfamiliar record until you identify its purpose or confirm the change with the responsible administrator.

Finish with a controlled test: open the website, check key subdomains, send and receive email, confirm SSL coverage, and run any required service verification. If you are preparing a host migration, pair this process with the WordPress site migration guide or the relevant hosting documentation. Keeping a dated DNS inventory turns future changes into a manageable checklist instead of an emergency investigation.

Related Topics

#DNS#domains#email setup#hosting#website troubleshooting
C

Clear Instruction Hub

Technical Editor

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.