DNS records are the instructions that connect a domain to websites, email services, verification systems, and certificate authorities. This practical reference explains A, CNAME, MX, TXT, and CAA records, shows what belongs in each field, and provides a reusable checklist for making changes without creating conflicts.
Overview
When you register a domain, its DNS zone acts like a routing directory. A browser, mail server, or third-party platform looks up records for a hostname and uses the response to decide where to connect or how to validate a request. DNS hosting may be provided by your registrar, web host, or a separate DNS provider; the record concepts remain broadly the same, although field names and interfaces differ.
The most common records in a website and email setup are:
| Record | Primary purpose | Typical value |
|---|---|---|
| A | Points a hostname to an IPv4 address | 203.0.113.10 |
| CNAME | Points a hostname to another hostname | app.example.net |
| MX | Specifies mail servers for a domain | 10 mail.example.net |
| TXT | Stores text used for verification, email policies, or other instructions | v=spf1 include:example.net ~all |
| CAA | States which certificate authorities may issue certificates | 0 issue "letsencrypt.org" |
In a DNS control panel, the Name or Host field identifies the hostname, the Type identifies the record, the Value or Target contains the destination or text, and TTL controls how long resolvers may cache the response. Some panels automatically append your domain name. If a provider asks for www, do not automatically enter www.example.com unless its instructions require a fully qualified name.
Checklist by scenario
Connecting a website or application
- Use an A record when the hosting provider gives you an IPv4 address. For example,
@may point to203.0.113.10, where@represents the root domain. - Use a CNAME record when the provider gives you a hostname such as
target.host.example. A common pattern iswwwpointing to that hostname. - Check whether the provider also requires a separate root-domain method. A CNAME at the root may not be supported by every DNS service, and some providers use an alias-style record instead.
- Remove or replace an old record only after confirming what currently serves the site. Conflicting A records or multiple competing targets can produce inconsistent results.
Setting up business email
- Add each MX record exactly as the mail provider specifies, including priority. A lower numeric priority normally indicates preference when several MX records are present.
- Keep MX targets as hostnames rather than IP addresses. If the target hostname is in your own zone, verify that it has an A or appropriate address record.
- Remove obsolete MX records after confirming the new service is ready. Leaving an old provider in the zone can send some messages to the wrong system.
- Add the provider’s requested TXT records for sender authentication or domain verification. Do not combine separate TXT values unless the provider explicitly gives you a combined format.
Verifying a domain with a service
- Copy the requested record type, host, and value precisely. Verification tokens are case-sensitive in some systems and may include punctuation that must remain unchanged.
- Check whether the service expects the value with or without quotation marks. DNS panels often add quotes automatically for TXT values.
- After saving, use the service’s verification control or a DNS lookup tool. A successful lookup does not always mean the service will verify immediately, because the service may check from a different resolver.
Controlling certificate issuance
- Use a CAA record when you want to specify which certificate authorities are permitted to issue certificates for the domain.
- Confirm the certificate authority’s current CAA syntax before publishing it. Common tags include
issuefor ordinary certificates andissuewildfor wildcard certificates, but the exact value depends on the authority. - Test certificate renewal after changing CAA records. A restrictive policy can prevent a legitimate automated renewal if the required authority is not allowed.
What to double-check
Record scope: Decide whether the change applies to the root domain, such as example.com, or a subdomain, such as www.example.com or mail.example.com. The host field may use @, a blank value, or the full name depending on the provider.
Conflicts: A hostname should not normally have both a CNAME and other data records at the same name. Likewise, do not add a second A record simply because an old one is difficult to identify. Review the current zone and the hosting provider’s instructions first.
Mail priorities: MX records are not interchangeable with A or CNAME records. Check both the destination hostname and priority, then send test messages in both directions. If you are changing providers, keep the old service available until delivery has been tested.
TXT formatting: TXT records can contain spaces, semicolons, quotation marks, and long strings. Copy values carefully. Some DNS interfaces split long text into several quoted segments while others expect one field. Follow the receiving service’s format rather than editing the token for readability.
TTL and propagation: TTL affects caching, not the speed at which every resolver must refresh. Before a planned migration, lowering the TTL may help future changes become visible sooner, but it does not erase caches immediately. Record the change time and test from more than one network or DNS lookup service.
Security and access: Restrict access to the DNS account, enable available multi-factor authentication, and keep a change log. DNS edits can affect website availability, email delivery, verification, and SSL certificate renewal, so treat the zone as production infrastructure.
Common mistakes
- Duplicating records from copied instructions: A provider may show an example and a required value. Add only the records that apply to your domain.
- Entering the domain twice: If a panel automatically appends
example.com, enteringwww.example.comin the host field can create an unintended name. - Using a CNAME where an A record is required: An IP address belongs in an A record; a hostname belongs in a CNAME. Do not place an IP address in a CNAME value.
- Leaving stale email records: Old MX, SPF, DKIM, or verification entries can create confusing delivery and authentication results. Remove them only after identifying their purpose and completing the transition.
- Assuming DNS changes are instant: A local cache, recursive resolver, browser, or service-specific cache may still show the previous response.
- Publishing restrictive CAA records without a renewal plan: Confirm every certificate authority used by your website, hosting platform, CDN, or automation before limiting issuance.
If a change is not working, follow a consistent troubleshooting workflow: confirm the authoritative DNS provider, inspect the exact record name and type, compare the live response with the control-panel value, check for duplicates, and test from multiple resolvers. Then inspect the application or mail provider’s logs. A DNS lookup can confirm that a record is visible, but it cannot prove that the destination service is configured correctly.
When to revisit
Return to this checklist before connecting a new website, moving a site to new hosting, changing business email providers, adding a verification service, or renewing an automated certificate. It is also useful before seasonal planning cycles when a campaign, product launch, or temporary subdomain may introduce additional DNS records.
Review the zone after a domain transfer, DNS provider change, hosting migration, or security incident. Recheck provider instructions when workflows or tools change; interfaces may rename fields, and services may revise the exact records required for verification, email authentication, or certificate issuance.
For a safe change, export or document the current records, write down the intended result, make one related change at a time, and record the date, purpose, and rollback value. Test the website, email, verification status, and certificate renewal path that the change affects. This habit turns DNS from a one-time setup task into a manageable part of domain and hosting operations.