DNS Records Explained: A Practical Reference for Website and Email Setup
DNSdomainsemail setupwebsite launchdomain management

DNS Records Explained: A Practical Reference for Website and Email Setup

BBitbox Cloud Editorial Team
2026-11-21
7 min read

A practical DNS reference covering A, AAAA, CNAME, MX, TXT, NS, CAA, and SRV records, plus setup and troubleshooting checklists.

DNS records connect your domain to a website, mail service, verification provider, or other online system. This practical reference explains what the main record types do, shows how to configure DNS for a website and business email, and provides a reusable checklist for making and verifying changes safely.

Overview

The Domain Name System (DNS) translates human-readable names such as example.com into the destinations that browsers, mail servers, and connected services need. Your domain registrar, hosting provider, or dedicated DNS provider may use different labels for the same fields, but the underlying concepts are consistent.

Before changing anything, identify where the domain’s authoritative DNS is managed. Updating records at a registrar will not have an effect if the domain delegates DNS to another provider. Look for the nameservers listed for the domain, then open the DNS management area at that provider. Export or record the existing zone first, especially before a migration or email-provider change.

RecordPlain-language purposeTypical valueImportant consideration
APoints a hostname to an IPv4 address.An IPv4 address such as 192.0.2.10Use the address supplied by your hosting provider. Do not add a protocol such as https://.
AAAAPoints a hostname to an IPv6 address.An IPv6 addressOnly publish an address that is configured and reachable for the service.
CNAMEAliases one hostname to another hostname.app.example-host.comOften used for subdomains. A hostname generally should not have a CNAME alongside other conflicting data.
MXSpecifies which mail servers receive email for the domain.A mail hostname with a priority numberPriority matters when multiple mail servers are listed. Follow the email provider’s exact values.
TXTStores text used for verification, email authentication, and service settings.A provider-generated text stringKeep separate purposes as separate records where the provider instructs you to do so.
NSIdentifies the authoritative nameservers for a domain or delegated subdomain.A nameserver hostnameNameserver changes can affect the entire DNS zone, not just one website record.
CAAStates which certificate authorities may issue certificates for the domain.A certificate-authority authorization entryCoordinate this with the certificate issuer. An overly restrictive entry can prevent certificate issuance.
SRVDefines the hostname and port for a particular service.Priority, weight, port, and targetUse the exact service name, protocol, port, and formatting supplied by the service provider.

DNS records do not normally contain a website protocol, page path, or port unless the record type specifically supports a port, as SRV does. A website address usually uses an A, AAAA, or CNAME record; forwarding a visitor from one URL to another is a web-server or redirect function, not a standard DNS function.

Checklist by scenario

Connecting a root domain to a website

  1. Confirm whether the hosting provider requires an A record, AAAA record, CNAME, or a combination.
  2. Check whether the provider treats the root host as @, a blank host field, or the full domain name.
  3. Add only the records requested by the provider. Remove an old conflicting A or AAAA record only after recording its value and confirming it is no longer needed.
  4. Configure the www hostname separately if required. It may use a CNAME to the root domain or a provider-specific target.
  5. Complete the hosting provider’s domain verification and SSL setup steps. DNS pointing and certificate provisioning are related but separate operations.
  6. Test both the root domain and www version over HTTPS, including the preferred redirect behavior.

For a larger move, keep the old hosting active until the new destination has been tested. The website hosting migration checklist can help organize a wider DNS and launch change.

Setting up business email

  1. Collect the email provider’s MX records, including each priority value.
  2. Replace obsolete MX records only when the new provider instructs you to do so. Mixed old and new mail routes can produce inconsistent delivery.
  3. Add the provider’s TXT record for domain verification if required.
  4. Configure SPF as a TXT record, using the provider’s published syntax. Keep one authoritative SPF policy for the domain rather than creating multiple SPF records.
  5. Publish DKIM using the selector and value supplied by the email provider. DKIM commonly uses a selector-based hostname, so copy the host precisely.
  6. Add a DMARC TXT record after reviewing the domain’s legitimate sending services. Start with a monitoring-oriented policy when you need to observe mail flows before enforcing a stricter policy.
  7. Send test messages to more than one mailbox and check both delivery and authentication results.

Do not guess SPF, DKIM, or DMARC values. They depend on the services that send mail for your domain, including forms, marketing systems, support platforms, and transactional applications.

Adding a subdomain or third-party service

  1. Write down the complete hostname, such as status.example.com or shop.example.com.
  2. Confirm whether the service expects an A record, CNAME, TXT verification record, or SRV record.
  3. Check for an existing record at exactly that hostname before adding a new one.
  4. Complete verification in the third-party dashboard, then test the subdomain and its SSL certificate.

For contact forms, DNS changes alone do not prove that messages are being received. Use the website contact form testing checklist to test submission, notification, spam handling, and reply paths.

Copy-ready DNS change worksheet

Use one row per change. Save the completed worksheet with your domain operations records.

HostnameTypeValue or targetTTLPurposeVerification result
@A / AAAAProvider valueProvider default or selected TTLWebsite rootPending
wwwCNAMEProvider hostnameProvider default or selected TTLWebsite aliasPending
@MXMail provider target and priorityProvider default or selected TTLInbound emailPending
@TXTSPF policyProvider default or selected TTLMail authorizationPending
selector._domainkeyTXT or CNAMEDKIM valueProvider default or selected TTLEmail signingPending
_dmarcTXTDMARC policyProvider default or selected TTLEmail reporting and policyPending

What to double-check

Nameservers: Confirm that you are editing the authoritative DNS provider. If the domain uses different nameservers than expected, changes made in the wrong dashboard will appear to do nothing.

Host formatting: Providers differ on whether a host field requires @, a blank value, or a fully qualified name. Some systems automatically append the domain, so entering the full name can accidentally create a duplicated hostname. Follow the provider’s field instructions.

Trailing dots: DNS interfaces may display fully qualified names with or without a trailing dot. Use the format required by the interface and avoid changing provider-generated targets casually.

TTL and propagation: TTL controls how long resolvers may cache an answer. A change can appear at different times for different networks, and lowering TTL after a change does not instantly remove values already cached under a previous TTL. Plan for a transition window rather than relying on one immediate test.

DNSSEC: If DNSSEC is enabled, confirm that the delegation and signing information remain consistent after moving DNS providers. A nameserver migration may require specific DNSSEC coordination. Treat DNSSEC changes as a planned operation and follow the registrar and DNS provider’s documented process.

CAA and SSL: If a CAA policy exists, verify that it permits the certificate authority used by your hosting or certificate service. After DNS changes, check the certificate and HTTPS behavior using the provider’s verification tools and a browser.

Mail sending sources: Review every system that sends mail as your domain before finalizing SPF, DKIM, and DMARC. Website forms and applications may use a separate mail service from employee inboxes.

Common mistakes

  • Changing nameservers instead of a record: This can replace the entire DNS zone and interrupt unrelated services such as email or verification.
  • Leaving old MX records in place: Mail may continue routing to an old provider or behave inconsistently.
  • Creating multiple SPF records: Combine authorized senders according to the provider’s guidance rather than publishing separate SPF policies.
  • Adding a CNAME beside incompatible records: Check for an A, AAAA, or other record at the same hostname before creating an alias.
  • Copying a URL into an A record: A record values are IP addresses, not URLs. A CNAME target is a hostname, not a complete web address.
  • Testing only from one network: A local cache can hide a change or make an old value appear current. Compare results from another resolver or network when troubleshooting.
  • Deleting first and documenting later: Record old values, timestamps, and intended rollback steps before editing.

If a website migration also involves a hosting change, review the SSL certificate troubleshooting guide after DNS points to the new destination. For operational continuity, keep DNS records in the same change log as backups, redirects, and application testing.

When to revisit

Revisit this checklist whenever you launch a domain, add a subdomain, change website hosting, migrate email, connect a third-party platform, renew or replace certificates, or investigate a delivery or SSL problem. Review the zone before seasonal planning cycles and after major changes to your registrar, hosting platform, email workflow, or DNS provider.

A practical maintenance review should confirm that the domain is renewed, authoritative nameservers are expected, website records point to the current infrastructure, unused verification records are documented, mail authentication reflects current senders, and CAA or DNSSEC settings still match the services in use. The domain renewal checklist is useful for the ownership and expiration portion of that review.

Finish each DNS change with three actions: record what changed and why, verify the intended website or service from more than one network where possible, and note the date on which the result should be reviewed. Treat DNS as an operational inventory rather than a one-time setup. That habit makes future launches, provider changes, and troubleshooting more predictable.

Related Topics

#DNS#domains#email setup#website launch#domain management
B

Bitbox Cloud Editorial Team

Technical Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.