DNS Records Explained: A Practical Setup Guide for Websites, Email, and Cloud Services
DNSdomain setupcloud hostingemail configurationwebsite reliability

DNS Records Explained: A Practical Setup Guide for Websites, Email, and Cloud Services

PPyramides Cloud Editorial Team
2026-12-05
7 min read

Learn what A, AAAA, CNAME, MX, and TXT records do, configure DNS safely, troubleshoot propagation, and maintain a practical change log.

DNS records are the instructions that connect a domain name to a website, email provider, CDN, analytics platform, or other cloud service. This practical guide explains what the main record types do, how to configure them safely, how to troubleshoot propagation, and which checks to repeat whenever your infrastructure changes.

Overview

The Domain Name System (DNS) translates readable names such as example.com into destinations that browsers, mail servers, and cloud services can use. Your domain registrar may provide DNS management, or the authoritative DNS zone may be hosted by a separate DNS provider. Before editing anything, identify where the authoritative nameservers point; changes made in the wrong dashboard will not affect the live domain.

A typical website may use an A record for an IPv4 address, an AAAA record for an IPv6 address, and a www CNAME pointing to the hosting provider’s hostname. Email commonly requires MX records plus several TXT records for verification and authentication. A CDN, analytics service, or cloud application may add another CNAME or TXT value.

DNS is separate from web hosting. Hosting stores and serves your site; DNS tells visitors where to find it. This distinction is useful during a cloud hosting migration: you can prepare the new hosting environment first, then update DNS when the site is ready.

What to track

DNS record reference

RecordPurposeCommon exampleImportant detail
APoints a hostname to an IPv4 address.@ → 203.0.113.10Use the exact address supplied by your hosting provider.
AAAAPoints a hostname to an IPv6 address.@ → an IPv6 addressAdd it only when your service supports and supplies IPv6.
CNAMEAliases one hostname to another hostname.www → hosting.example.netDo not use a CNAME at the same name as another record, and follow provider rules for the root domain.
MXSpecifies where email for a domain should be delivered.@ → a mail hostPriority matters; lower numerical values generally indicate preference.
TXTStores text used for verification, email authentication, and service configuration.SPF, DKIM, DMARC, or ownership tokenCopy the value exactly, including punctuation and required quotation handling.
NSIdentifies the authoritative nameservers for a domain or delegated subdomain.Registrar → DNS provider nameserversChanging nameservers can replace the active DNS zone, so review records first.
CAARestricts which certificate authorities may issue TLS certificates for a domain.Certificate authority policyUse only when you understand the certificate provider’s required value.

Records needed for common connections

  • Website or cloud hosting: usually an A record, AAAA record, or CNAME, depending on the host’s instructions. You may need separate values for the root domain and www.
  • Email provider: MX records for delivery, plus TXT records for sender authentication and domain verification. Some providers also publish DKIM through a CNAME.
  • CDN or reverse proxy: often one or more CNAME or A records. The provider may require the domain to use its nameservers instead of individual records.
  • Analytics or verification service: commonly a TXT record or a CNAME at a specific subdomain. A service may also use an HTML file or application-level code instead of DNS.
  • Subdomain application: create a record for the precise hostname, such as app.example.com, rather than changing the root domain records.

Provider-neutral setup workflow

  1. Record the current zone. Export it if the DNS provider supports exports, or capture each record’s name, type, value, TTL, and priority.
  2. Collect the exact DNS instructions from the service you are connecting. Do not substitute an IP address or hostname based on memory.
  3. Confirm the record name format. Some interfaces expect @ for the root domain, while others require the domain name or leave the field blank.
  4. Check for conflicts. A hostname cannot normally have a CNAME alongside other data at the same name, and duplicate MX or TXT entries may change how a service interprets the zone.
  5. Lower the TTL before a planned migration if appropriate, then save the original TTL for later restoration. A lower TTL does not remove existing cached answers immediately.
  6. Apply the smallest necessary change. Keep unrelated records intact, especially mail, verification, and subdomain entries.
  7. Verify from an independent DNS lookup and test the actual website, email flow, or connected service.

Cadence and checkpoints

DNS does not need daily attention when a domain is stable, but it benefits from a lightweight recurring review. A monthly or quarterly checkpoint is useful for small business websites and cloud-hosted applications, particularly when several people can edit the zone.

Monthly checks

  • Confirm that the root domain and important subdomains resolve to the intended services.
  • Check that the website loads over HTTPS and that both the preferred hostname and redirect hostname behave as intended.
  • Review MX records and send a test message to and from the domain if email is business-critical.
  • Look for unexpected records, unfamiliar nameservers, or changes without a corresponding entry in your change log.

Quarterly checks

  • Review TXT records for obsolete verification tokens and confirm that email authentication values still match your provider’s current instructions.
  • Confirm that AAAA records are intentional and that IPv6 traffic reaches a working service. An incorrect AAAA record can cause some visitors to fail even when the A record is correct.
  • Review CAA records, CDN settings, and third-party integrations after any hosting, email, or certificate change.
  • Test whether a documented rollback value is still valid before an emergency migration.

Use a change log for every edit. A simple format is: date | editor | hostname | type | old value | new value | reason | TTL | verification result | rollback owner. This turns DNS troubleshooting from guesswork into an auditable process.

How to interpret changes

DNS propagation is often described as a single event, but different resolvers can retain cached answers for different periods. TTL influences how long a resolver may cache a record; it does not guarantee that every network will refresh at the same moment. After a change, compare results from more than one resolver and check the authoritative nameserver directly when possible.

If a website works on one network but not another, the cause may be cached DNS data, split DNS, an incorrect nameserver delegation, or inconsistent A and AAAA records. If the domain does not resolve anywhere, first confirm that the authoritative nameservers are correct and that the record was added to the active zone.

For email problems, inspect MX records before changing TXT records. An SPF record controls which senders a domain authorizes, while DKIM and DMARC depend on provider-specific names and values. Avoid creating multiple competing SPF records at the root domain; consolidate authorized senders according to the email provider’s instructions. Treat authentication changes carefully because an incorrect value can affect delivery even when the website is working normally.

During a hosting migration, keep the old environment available until the new destination has been tested and DNS answers have updated across the networks you care about. For a detailed infrastructure review, pair this process with the Cloud Hosting Monitoring Checklist and, when possible, test changes on a staging website first.

When to revisit

Revisit this guide whenever you launch a site, connect a new cloud service, move to different web hosting, change email providers, add a CDN, or delegate DNS to another platform. It is also worth reviewing after a security incident, an unexplained outage, a certificate problem, or a team change that affects who manages the domain.

For routine maintenance, schedule a monthly resolution check and a quarterly record audit. Refresh the documented values whenever a provider changes its verification method, hosting endpoint, IPv6 guidance, email configuration, or DNS interface. Provider instructions take precedence over examples in any general guide.

A practical next step

  1. Open the authoritative DNS dashboard and export or document the current zone.
  2. Mark records as website, email, verification, CDN, application, or unknown.
  3. Remove nothing until its owner and purpose are confirmed.
  4. Create a change-log entry before making the next edit.
  5. After saving, test DNS resolution, the website, HTTPS, and email separately.
  6. Set a calendar reminder for the next monthly check and a deeper quarterly audit.

Maintained this way, DNS becomes a manageable part of cloud hosting operations rather than a last-minute obstacle. Clear ownership, exact provider values, documented rollback information, and recurring checks are the essentials for reliable domain connections.

Related Topics

#DNS#domain setup#cloud hosting#email configuration#website reliability
P

Pyramides Cloud Editorial Team

Cloud Hosting 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.