DNS records connect a domain to websites, email systems, verification services, and other infrastructure. This reference explains what each common record does, which value to enter, and how to change and validate records without guessing.
Overview
The Domain Name System, or DNS, translates human-readable names such as example.com into instructions that browsers, mail servers, and software services can use. A DNS record is one of those instructions. The correct record depends on the service you are connecting and the hostname it needs.
Before editing DNS, identify three things:
- The hostname: the domain or subdomain being configured, such as
@,www, ormail. - The record type: such as A, CNAME, MX, or TXT.
- The destination or value: an IP address, hostname, mail server, or verification string supplied by the relevant provider.
DNS is usually managed wherever the domain's authoritative nameservers are hosted. That may be the registrar, a dedicated DNS provider, or a web hosting platform. If the control panel shows nameservers pointing elsewhere, changes made in the registrar's basic DNS editor may not affect the live domain.
DNS record reference
| Record | Use it for | Typical value |
|---|---|---|
| A | Pointing a hostname to an IPv4 address | 203.0.113.10 |
| AAAA | Pointing a hostname to an IPv6 address | An IPv6 address |
| CNAME | Pointing a hostname to another hostname | app.provider.example |
| MX | Directing incoming email | A mail server hostname and priority |
| TXT | Verification and text-based policies | A provider-supplied text string |
| NS | Delegating DNS authority | Nameserver hostnames |
A record tells a hostname where to find an IPv4 server. An AAAA record performs the same role for IPv6. A CNAME creates an alias from one hostname to another; it does not contain an IP address. MX records control where other mail systems deliver messages, while TXT records commonly carry verification tokens and email authentication policies. NS records identify the nameservers responsible for a zone and should be changed only when you intend to move DNS authority.
Checklist by scenario
Connecting a domain to a website
- Read the hosting provider's setup instructions and note whether it requests an A, AAAA, CNAME, or a combination.
- Use the requested hostname. In many dashboards,
@represents the root domain, whilewwwrepresents thewwwsubdomain. Labels vary, so follow the field instructions. - Enter the destination exactly as supplied. Do not add
http://,https://, a path, or a port to an A or CNAME value. - Check for conflicting records. A hostname generally should not have an unrelated CNAME alongside other address records.
- Save the change, record the date and previous value, and confirm that the hosting account also recognizes the domain.
If your site uses a cloud host, container platform, or application gateway, the service may require more than one hostname. Keep a short deployment record showing which hostname serves production and which one is reserved for staging. The Docker app deployment checklist can help with the related production details, including ports and configuration.
Setting up business email
- Obtain the mail provider's complete MX instructions, including each server hostname and its priority value.
- Remove obsolete MX records only after confirming that the new provider is ready. Leaving old and new destinations together can produce inconsistent delivery.
- Add the provider's TXT records for SPF, DKIM, or domain verification when requested. These records are separate from MX records.
- Check whether the provider uses a selector or a subdomain for DKIM. Enter that exact hostname rather than placing the value at the root by assumption.
- Send a test message in both directions and inspect the receiving system's authentication results where available.
MX priority is normally represented by a number; the meaning of lower or higher values can depend on the provider's documented convention, so use the values supplied rather than inventing a sequence. An SPF policy is usually published as TXT, and a domain should have one deliberate SPF policy rather than several competing SPF records. DKIM and DMARC also require provider-specific values and hostnames.
Verifying a domain for a SaaS, analytics, or developer service
- Copy the requested record type, name, and value from the service's verification screen.
- Preserve punctuation, capitalization where relevant, and the complete token. Do not replace a token with your domain name.
- Check whether the DNS panel automatically appends your domain. If it does, entering the full domain in the name field may create a duplicated hostname.
- Leave the record in place until the service confirms verification and you understand whether it is needed for ongoing operation.
- After verification, label the record in your inventory so another administrator knows its purpose.
Verification records are often TXT records, but some services request a CNAME or a file-based method instead. The requested record type is authoritative for that setup; do not substitute an A record because the service name looks like a web address.
What to double-check
- Authoritative DNS: Confirm the nameservers answering for the domain before making a change.
- Root versus subdomain:
example.com,www.example.com, andmail.example.comare different hostnames. - Record conflicts: Look for duplicate, outdated, or contradictory A, AAAA, CNAME, and MX records.
- Value formatting: Some panels require a trailing dot on a fully qualified hostname; others add it automatically. Follow the panel's format and preview.
- TTL: Time to live influences how long resolvers may cache a response. A lower TTL can be useful before a planned migration, but it does not guarantee instant worldwide change.
- Email authentication: Treat SPF, DKIM, and DMARC as a coordinated configuration. Changing a sending platform may require updating more than one record.
- Security and access: Restrict DNS editing access, use change logs, and keep the domain account's ownership and renewal details current. See the domain portfolio audit checklist for a broader review process.
- Application behavior: DNS resolution does not prove that the website, TLS certificate, firewall, or application is correctly configured. Test the complete path.
For validation, query the record from more than one network or use a DNS lookup utility. Check the exact hostname and record type, not just whether the domain opens in one browser. Then test the service itself: load the site, send and receive email, or return to the SaaS verification page.
Common mistakes
- Using a URL as a DNS value: DNS fields normally need a hostname or IP address, not a complete web URL.
- Editing the wrong DNS provider: A record changed at the registrar will not help if the domain uses another provider's nameservers.
- Putting an IP address in a CNAME: Use A or AAAA for an IP address, unless the service explicitly provides a different supported method.
- Replacing all records during a website change: Website records, email records, verification tokens, and nameservers may serve unrelated systems. Change only what the provider requests.
- Creating multiple SPF TXT policies: Consolidate authorized senders into the supported policy structure instead of adding a separate SPF record for each tool.
- Assuming propagation is an error: Cached responses can make a valid change appear inconsistent for a period of time. Compare authoritative answers with recursive lookup results.
- Deleting records without a rollback note: Save the old name, type, value, TTL, and purpose before changing production DNS.
When to revisit
Return to this checklist whenever you launch a website, change hosting, migrate email, add a SaaS product, introduce a new sending platform, or move DNS authority. Revisit it before a planned migration as well: inventory current records, reduce unnecessary clutter, confirm the rollback path, and decide which records must remain unchanged.
It is also useful to review DNS after an incident, ownership change, security audit, or unexplained email delivery problem. Compare the live zone with your documented intended state and remove records that no longer have a known owner. For broader website reliability work, pair this review with the website uptime monitoring runbook and the website security maintenance checklist.
Practical final check: before saving any DNS change, write down the hostname, type, value, purpose, source of the instruction, and rollback value. After saving, validate from an external lookup, test the affected website or service, and update the change record. That small habit makes DNS easier to troubleshoot and safer to manage as your domain and hosting infrastructure grows.