DNS records connect a domain name to websites, email services, verification tools, and other applications. This practical checklist explains what A, CNAME, MX, TXT, and SRV records do, which record to use in common situations, how to add records safely, and how to troubleshoot problems without creating conflicts.
Overview
The Domain Name System (DNS) translates human-readable names such as example.com into technical destinations that browsers, mail servers, and applications can use. Your domain registrar, web hosting control panel, or dedicated DNS provider may offer DNS management. The field names can differ slightly, but the underlying record concepts are generally the same.
A DNS record usually includes a name or host, a record type, a value or destination, and a time to live (TTL). The name identifies the domain or subdomain affected. The type determines how the record is used. The value points to an address, hostname, mail server, verification token, or service configuration. TTL tells DNS resolvers how long they may cache the response before checking again.
| Record | Primary purpose | Example value | Typical use |
|---|---|---|---|
| A | Maps a name to an IPv4 address | 192.0.2.25 | Pointing a domain or subdomain to a web server |
| AAAA | Maps a name to an IPv6 address | 2001:db8::25 | Providing an IPv6 destination |
| CNAME | Aliases one hostname to another hostname | target.example.net | Connecting a subdomain to a hosted service |
| MX | Specifies mail servers and their priority | 10 mail.example.net | Directing email for a domain |
| TXT | Stores text used by services and policies | service-specific text | Domain verification, SPF, and other configuration |
| SRV | Identifies a service, port, priority, and target | 10 5 443 service.example.net | Applications that publish service discovery details |
For a basic website, an A record is commonly used when the hosting provider gives you an IP address. A CNAME is commonly used when the provider gives you a hostname, especially for a subdomain such as www, app, or docs. Do not choose between them based only on the provider name; use the record type and destination specified in the service's setup instructions.
Checklist by scenario
Connecting a domain to web hosting
- Confirm which DNS provider is authoritative for the domain. Changes made in the wrong control panel will not affect live DNS.
- Record the current DNS entries before making changes, including existing website, email, verification, and subdomain records.
- Use an A record when the host provides an IPv4 address. Use an AAAA record only when an IPv6 address has been supplied and configured.
- Use a CNAME when the host provides a destination hostname. CNAME records are normally suitable for subdomains, but many DNS systems do not allow a CNAME at the root or apex of a domain.
- Check both the bare domain, such as
example.com, and thewwwhostname. They may require separate records or a redirect configured by the hosting platform. - Confirm that the hosting account accepts the domain and that SSL certificate provisioning has been requested or enabled where applicable.
If the change is part of a larger launch or migration, use the website migration runbook to plan the cutover, validation, and rollback steps.
Adding or changing email service
- Obtain the complete MX record list from the email provider, including each hostname and priority number.
- Remove obsolete MX records only after confirming that the new service is ready. Leaving old and new mail systems together can produce inconsistent delivery.
- Enter MX values as hostnames, not IP addresses, unless the provider explicitly instructs otherwise.
- Review the provider's SPF, DKIM, and DMARC instructions. These commonly use TXT records, although DKIM details may be published under a selector-specific hostname.
- Send test messages in both directions and inspect the receiving service's authentication results.
For a fuller mail setup checklist, see Business Email Hosting Setup: SPF, DKIM, DMARC, and Mailbox Management.
Creating a subdomain
- Choose a clear hostname, such as
blog,status,staging, orapi. - Use an A record if the subdomain should resolve directly to an IP address.
- Use a CNAME if the subdomain should follow another hostname managed by a service.
- Check whether the application also requires a verification TXT record or a specific path-based configuration.
- Test the subdomain over both HTTP and HTTPS, then confirm that the application responds with the intended site.
Verifying domain ownership
- Copy the verification hostname and TXT value exactly as supplied. Preserve punctuation, quotation content, hyphens, and capitalization where relevant.
- Enter the record at the correct level. A provider may request a root-domain TXT record or a host such as
_verifyor_acme-challenge. - Do not replace existing TXT records automatically. Multiple TXT records can be valid, but combining or editing them incorrectly may break SPF or another service.
- Run the provider's verification check after the record is visible through public DNS.
Publishing an application service
Some applications require an SRV record. An SRV entry normally includes a service name, protocol, priority, weight, port, and target hostname. Follow the application's exact format because placing a port in the target field or omitting the leading underscore from the service name can make the record unusable. If the application instead provides a CNAME or TXT instruction, do not substitute an SRV record.
What to double-check
Names and formatting
DNS interfaces vary in how they display the root domain. A blank name, an @ symbol, or the full domain may all represent the apex, depending on the provider. Some interfaces automatically append the domain to a host field. Entering www.example.com where the panel expects only www can create an unintended name such as www.example.com.example.com. Check the provider's field guidance before saving.
Conflicting records
An A record and a CNAME generally should not exist for the same hostname. Likewise, two unrelated systems should not both control the same web destination unless the design specifically supports it. Review existing records before adding a new one. For mail, verify the complete MX set rather than checking only the first visible entry.
TTL and propagation
TTL affects caching, not the speed at which the authoritative DNS provider saves a change. A shorter TTL can be useful before a planned migration, while a longer TTL can reduce repeated lookups during stable operation. Use the values recommended by the provider and lower TTL ahead of a high-risk change when practical. Even after an authoritative server updates, different resolvers may continue returning cached data until their previous TTL expires.
Validation
Check the result from more than one network or DNS lookup service. Test the exact hostname, not just the root domain. For websites, verify redirects, HTTPS, certificate coverage, and the expected application. For email, test sending and receiving, inspect authentication results, and confirm that old mailboxes are not still receiving traffic unexpectedly.
Common mistakes
- Changing nameservers instead of records: Nameserver changes move DNS authority to a different provider. They are not the same as editing an A or MX record and can remove records that were not copied.
- Deleting all TXT records: Verification tokens, SPF data, and other services may share the TXT record space. Remove only entries confirmed to be obsolete.
- Using an IP address in a CNAME: CNAME values point to hostnames. Use an A or AAAA record for an IP address.
- Adding a CNAME at the root without support: Many DNS systems restrict apex CNAME records. Follow the hosting provider's supported setup instead.
- Forgetting the trailing dot convention: Some systems treat a fully qualified hostname differently depending on whether it ends with a dot. Use the format shown by the DNS provider.
- Assuming propagation is complete everywhere: A successful lookup from one location does not prove that every resolver has refreshed its cache.
- Testing only the browser: A browser may hide DNS, redirect, certificate, or application errors. Use DNS lookups and service-specific diagnostics as well.
When to revisit
Keep this checklist available whenever you connect a new domain to web hosting, launch a subdomain, move a website, change email providers, add a SaaS application, renew a service, or investigate a resolution problem. Revisit the configuration before seasonal planning cycles and before planned migrations, especially if a lower TTL or a rollback plan may be useful.
Review DNS documentation when your provider changes its control panel or field names, when an application changes its verification or email-authentication requirements, or when your organization changes hosting, security, or email architecture. At minimum, keep an export or written inventory of important records and update it after every approved change.
Before saving your next DNS change, use this short action list: identify the authoritative DNS provider; document the current records; confirm the exact record type and host; check for conflicts; choose an appropriate TTL; save one controlled change at a time; validate from more than one network; and record the final value and reason for the change. For related domain administration tasks, consult the domain renewal and transfer checklist and the website hosting security checklist.