DNS records are the instructions that connect your domain to a website, email provider, verification service, or other online destination. This guide explains what each common record does, how to point a domain to hosting safely, how to check changes as they propagate, and how to maintain a reliable DNS setup over time.
Overview
The Domain Name System, or DNS, translates a human-readable domain such as example.com into the technical destinations used by browsers, mail servers, and third-party platforms. Your domain registrar may provide DNS management, or your domain may use nameservers operated by a separate DNS provider. The important distinction is that the provider controlling the authoritative nameservers controls the records that are publicly published.
DNS is separate from web hosting. Registering a domain gives you control of the name; hosting stores and serves your website; DNS connects the two. You can keep your domain registration with one company, use another company for DNS, and host your website with a third provider. This flexibility is useful, but it also means you should identify the active DNS provider before making changes.
Before editing records, record the current configuration. Export it if your DNS provider supports an export, or take a dated screenshot and copy the values into a simple change log. Include the record name, type, value, TTL, purpose, and date changed. This small habit makes troubleshooting and rollback much safer.
If you are choosing infrastructure for a new site, first decide whether your current hosting plan fits your needs. The guide to shared hosting, VPS, and managed hosting can help you separate hosting capacity from DNS configuration.
What to track
Most website and email setups use only a few record types. The following comparison shows their usual purpose, but the exact value must come from the service you are connecting. Never guess a destination or copy a value from an unrelated example.
| Record | What it does | Common use | Important caution |
|---|---|---|---|
| A | Points a name to an IPv4 address. | Connecting a domain or subdomain to a web server. | Use the IPv4 address supplied by your host; do not enter a URL. |
| AAAA | Points a name to an IPv6 address. | Connecting a site to an IPv6-capable server. | An incorrect IPv6 address can affect users on IPv6 networks. |
| CNAME | Aliases one hostname to another hostname. | Connecting www or a service subdomain to a platform hostname. | It generally belongs on a hostname, not the zone apex, and should not point to an IP address. |
| MX | Specifies where mail for a domain should be delivered. | Setting up hosted business email. | Mail records use a priority value; remove or replace old MX records only when the provider instructs you to. |
| TXT | Stores text used for verification or policy information. | SPF, DKIM-related instructions, domain verification, and other service checks. | Preserve existing TXT records. Combining or editing values incorrectly can break verification or email authentication. |
| NS | Identifies the nameservers authoritative for a domain or delegated subdomain. | Moving DNS management to another provider or delegating a subdomain. | Changing nameservers changes the control point for the whole DNS zone. |
| CAA | Restricts which certificate authorities may issue TLS certificates for a domain. | Adding an extra layer of certificate issuance control. | An overly restrictive entry can prevent a legitimate certificate from being issued or renewed. |
A record versus CNAME
The practical difference between an A record and a CNAME is the destination format. An A record points directly to an IPv4 address, while a CNAME points to another hostname. If a hosting provider gives you an IP address, it may require an A record. If it gives you a platform hostname, it may require a CNAME. Some providers use different instructions for the root domain and www subdomain, so follow the provider's current setup page rather than applying one record to every hostname.
MX and TXT records for email
Website DNS and email DNS are related but independent. Changing an A record for your website does not normally move mail. Email delivery depends primarily on MX records, while TXT records may support sender authentication and provider verification. For a complete email setup, use the instructions supplied by your email provider and review the related business email authentication checklist.
Cadence and checkpoints
Use a deliberate workflow whenever you change DNS. First, confirm the service you are connecting and identify the authoritative DNS provider. At the domain registrar, look for the nameserver entries; then make the record change in the system those nameservers identify. Editing records at an inactive registrar dashboard will not affect the live domain.
- Document the baseline. Save the existing records and note the intended outcome, such as “connect www to the new website host.”
- Lower the TTL before planned changes. TTL, or time to live, tells recursive DNS resolvers how long they may cache a response. Lowering it ahead of a migration can make later changes easier to adjust, although cached responses may still remain visible for a period.
- Add the new record carefully. Check the hostname, record type, destination, priority, and formatting. A blank or root host may be represented by an at-sign, a blank field, or the full domain depending on the provider.
- Check for conflicts. Avoid creating multiple records that contradict the service instructions. In particular, review existing A, CNAME, MX, and TXT records for the same name before saving.
- Test from more than one location. Use your DNS provider's inspection tools, a command-line lookup such as
digornslookup, and an independent DNS checker when appropriate. Test the website, email flow, or verification action itself rather than relying only on one lookup result. - Restore a sensible TTL. Once the change is stable, return the TTL to the value recommended by your DNS provider or hosting workflow. Very short TTLs can increase query frequency without solving an application problem.
Propagation is not a single worldwide switch. Different recursive resolvers may hold old information until their cached TTL expires, while other resolvers show the new value sooner. A website may therefore work on one network and appear unchanged on another during the transition. Avoid repeatedly changing records simply because one check has not updated yet; that can make the final state harder to identify.
For a migration, keep the old hosting service available until the new destination has been tested and DNS results are consistent enough for your risk level. If a change causes an outage, compare the live record with your saved baseline. Revert only the affected record, wait for caches to update, and then investigate the underlying issue. A rollback is easier when you change one related group at a time instead of editing website, email, nameserver, and security records simultaneously.
How to interpret changes
A DNS lookup answers “what record is being returned,” not necessarily “is the service working.” If an A record points to the expected server but the site fails, check the hosting configuration, virtual host settings, SSL certificate, firewall, and application status. If a CNAME is correct but a platform still reports that the domain is unverified, confirm the exact hostname and verification TXT value, including punctuation and quotation handling.
Email problems require a separate review. Confirm that MX records point to the intended provider and that obsolete MX records are not receiving mail unexpectedly. Review TXT records for duplicate or incomplete sender policies, but do not delete records merely because their purpose is unfamiliar. A record may support a marketing platform, analytics tool, payment service, or domain verification process.
Nameserver changes deserve the most caution because they move authority for the entire zone. After changing NS records, verify that all essential website, email, verification, and security records exist at the new provider. A nameserver migration that copies only the website record can unintentionally interrupt email or other services.
Keep a simple inventory with these fields: hostname, type, value, purpose, provider owner, TTL, last reviewed date, and responsible account. Flag records that are unused, undocumented, duplicated, or connected to a service no longer in use. Remove obsolete entries only after confirming that no active service depends on them.
When to revisit
Review DNS at least quarterly for an active site, and add a review to every launch, migration, domain transfer, hosting change, or email-provider change. A monthly check may be appropriate for a publication or creator business that frequently adds newsletters, forms, advertising, analytics, or verification services. Revisit the records immediately if visitors report intermittent access, email stops arriving, a certificate cannot renew, or a platform says the domain is not verified.
Use this practical checklist before closing a DNS task:
- Confirm the authoritative nameservers and the account that controls them.
- Write down the intended change and save the previous record.
- Lower TTL ahead of a planned migration when the timing allows.
- Use the exact record type and value supplied by the destination service.
- Check A, AAAA, CNAME, MX, TXT, NS, and CAA records for conflicts or omissions.
- Test from an independent lookup and through the actual website, email, or verification service.
- Wait for caching effects before making another change.
- Restore TTL, update the change log, and document the purpose of the final record.
DNS management becomes much less intimidating when it is treated as a documented system rather than a one-time setup task. Pair this review with the domain security hardening checklist, especially after granting a new person access or moving DNS providers. If the change involves the domain itself, not just its records, consult the domain transfer guide before unlocking or transferring it.