DNS records connect your domain to a website, email provider, verification service, or other online tool. This practical reference explains what the main record types do and gives reusable checklists for connecting hosting, setting up business email, verifying third-party services, and troubleshooting changes safely.
Overview
The Domain Name System, or DNS, translates human-readable domain names into the technical destinations that browsers and online services use. Your domain registrar may provide DNS management, or your nameservers may point to a separate DNS provider. Before changing anything, identify where the authoritative DNS zone is managed. Editing records at the wrong provider will not affect the live domain.
A DNS record usually includes a name or host, a record type, a value, and a time to live (TTL). The host may be written as @ for the root domain, such as example.com, or as a label such as www, mail, or shop. Some providers automatically append your domain name, so check the interface instructions before entering a fully qualified hostname.
| Record | Typical purpose | Example use |
|---|---|---|
| A | Points a hostname to an IPv4 address | Connecting a domain to a web server |
| AAAA | Points a hostname to an IPv6 address | Supporting an IPv6-enabled server |
| CNAME | Aliases one hostname to another hostname | Connecting www or a service subdomain |
| MX | Specifies where email for the domain is delivered | Connecting business email hosting |
| TXT | Stores text used for verification and email policies | Domain verification, SPF, DKIM, or DMARC |
| NS | Identifies the authoritative nameservers | Delegating DNS management to a provider |
| CAA | States which certificate authorities may issue certificates | Restricting certificate issuance |
Record values are provider-specific. Treat examples from a hosting or email service as instructions to follow, not values to copy from another domain. A single misplaced character can prevent verification or route traffic incorrectly.
Checklist by scenario
Connecting a website or web host
- Confirm whether the host requires an A record, an AAAA record, a CNAME, or a combination.
- Check whether the root domain and
wwwhostname need separate records. - Remove or replace conflicting records only after recording the existing values.
- Keep unrelated email and verification records in place.
- Save the changes, then test both the root domain and the preferred
wwwversion. - Confirm that HTTPS is configured at the hosting provider after DNS points to the correct destination. DNS alone does not create a website certificate.
If you are moving a site, make a DNS inventory before changing nameservers or address records. The domain transfer checklist can help separate registrar changes from DNS changes and reduce the risk of an avoidable interruption.
Adding business email
- Copy every MX record supplied by the email provider, including its priority where required.
- Check whether the provider instructs you to remove old MX records. Multiple providers should not receive mail unintentionally.
- Add the provider's TXT records for domain verification or email authentication exactly as supplied.
- Complete any mailbox, administrator, or verification step inside the email service.
- Send test messages in both directions and inspect the message headers if delivery behaves unexpectedly.
MX records control delivery, but they do not by themselves authenticate outgoing mail. For a fuller review of SPF, DKIM, and DMARC, use the email authentication setup guide.
Verifying a domain with a third-party service
- Choose the verification method requested: commonly a TXT record, CNAME record, or file placed on the website.
- Enter the exact host and value. Preserve punctuation, underscores, quotation guidance, and capitalization where the provider specifies them.
- Do not delete the record after verification unless the service explicitly says it is temporary.
- Return to the service dashboard and select its verification or recheck action.
- Record which service owns each verification entry so future administrators understand its purpose.
Creating a subdomain
Decide whether the subdomain should point directly to an IP address with an A or AAAA record, or to another hostname with a CNAME. For example, shop.example.com, docs.example.com, and status.example.com may each use different destinations. Configure the subdomain at the destination service as well; adding DNS alone does not provision the application.
What to double-check
- Authoritative provider: Use the DNS dashboard associated with the active nameservers, not necessarily the company where the domain was purchased.
- Record conflicts: A hostname generally should not have an unrelated CNAME alongside other address records. Review existing entries before adding a new one.
- Root versus subdomain:
@, a blank host field,example.com, andwwwmay have different meanings in different interfaces. - TTL: A shorter TTL can make planned testing easier, while a longer TTL may reduce repeated lookups. Provider defaults are usually a reasonable starting point. Changing TTL does not instantly erase cached answers.
- Trailing dots and formatting: Some dashboards add the domain automatically or display fully qualified names with a trailing dot. Follow the interface's format rather than guessing.
- Email continuity: Never replace website records while trying to change email, and never replace MX records while trying to connect a website.
- Security records: CAA, SPF, DKIM, and DMARC entries should be changed only with a clear understanding of the service they protect. Keep a dated record of the intended policy.
DNS changes may appear to work from one network before another has updated its cached result. Test using more than one connection or DNS lookup tool, and compare the returned record with the provider's required value.
Common mistakes
Editing the wrong DNS zone: A domain can be registered with one company, hosted with another, and have DNS managed by a third. Check the current NS records before making changes.
Adding the domain twice: Some control panels automatically append the domain to a host field. Entering www.example.com where the panel expects www can create an unintended hostname.
Deleting records in bulk: Website, email, verification, and security records can coexist. Export or copy the current zone first, then change only the entries required for the task.
Using an IP address in a CNAME: CNAME values are hostnames. If a service supplies an IP address, it generally expects an A or AAAA record instead.
Assuming DNS controls everything: DNS directs traffic, but the web server must be configured for the domain, the email service must have the mailbox, and the application must recognize the hostname.
Ignoring the renewal and ownership layer: Keep registrar access, recovery details, and domain renewal settings current. The domain renewal guide covers the operational checks that sit outside DNS itself.
When to revisit
Use this checklist whenever you launch a site, add a subdomain, change web hosting, connect business email, verify a marketing or analytics tool, or migrate a domain. Revisit the zone before a seasonal campaign or major launch so there is time to identify stale records and test the intended destination.
Review DNS documentation whenever a provider changes its setup workflow, adds a new authentication requirement, or gives you replacement record values. Provider instructions take priority over old screenshots, saved notes, and generic examples. At least periodically, make a simple inventory of active records, their purpose, and the service owner. Remove entries only after confirming that the related service is no longer used.
For your next change, follow this short sequence: identify the authoritative DNS provider, document the current records, copy the exact values from the destination service, change only what is necessary, wait for cached results to update, and test the affected website or email flow. That routine turns DNS from a one-time setup task into a manageable part of ongoing website operations.