Guides

DNS Records Explained 2026: A, CNAME, MX, TXT, and Nameservers for Beginners

By Editorial TeamAugust 8, 20265 min read

DNS is the system that makes the internet usable by humans. Instead of typing 192.168.1.1 into your browser, you type yoursite.com and DNS translates it to the correct IP address. Understanding DNS records is essential for anyone who manages a website — whether you are pointing your domain to a new host, setting up professional email, or configuring a CDN. This guide explains every common DNS record type in plain English.

How DNS Works: The Simple Version

When someone types yoursite.com into their browser, here is what happens in milliseconds:

  1. 1.The browser asks a DNS resolver (usually operated by your ISP or a service like Cloudflare) for the IP address of yoursite.com
  2. 2.The resolver checks its cache. If it has the answer, it returns it immediately. If not, it queries the root DNS servers.
  3. 3.The root servers direct the resolver to the TLD nameservers (for .com domains, the .com TLD nameservers)
  4. 4.The TLD nameservers direct the resolver to your domain's authoritative nameservers (e.g., Bluehost's nameservers)
  5. 5.Your authoritative nameservers return the A record (IP address) for yoursite.com
  6. 6.The browser connects to that IP address and downloads your website

This entire process takes 10-200 milliseconds depending on caching and geographic distance.

The 6 DNS Record Types You Need to Know

A Record (Address Record)

What it does: Maps a domain name to an IPv4 address

Example: yoursite.com -> 192.168.1.1

When to use: Always. This is the most fundamental DNS record. Without an A record, your domain cannot connect to your web hosting server.

AAAA Record (IPv6 Address Record)

What it does: Maps a domain name to an IPv6 address

Example: yoursite.com -> 2001:db8::1

When to use: When your host supports IPv6. Bluehost on Oracle Cloud supports IPv6. AAAA records future-proof your domain as IPv4 addresses run out.

CNAME Record (Canonical Name)

What it does: Maps one domain name to another

Example: www.yoursite.com -> yoursite.com

When to use: For subdomains that should point to another domain. Common uses: www subdomain, CDN configuration, third-party services (Shopify, Blogger, Substack).

MX Record (Mail Exchange)

What it does: Tells email servers where to deliver email for your domain

Example: yoursite.com -> mail.yoursite.com (priority 0)

When to use: When you set up professional email. MX records point to your email provider's servers. Google Workspace, Pro Email, and Office 365 each have specific MX records you must add.

TXT Record (Text Record)

What it does: Stores text data in DNS. Used for verification, email authentication, and security.

Example: yoursite.com -> "v=spf1 include:_spf.google.com ~all"

When to use: Domain verification (Google Search Console, SSL providers), SPF records (email authentication), DKIM records (email signing), and DMARC policies.

Nameservers

What they do: Delegate all DNS management for your domain to a specific provider

Example: ns1.bluehost.com, ns2.bluehost.com

When to use: When you want a provider to manage all your DNS records. If you point nameservers to Cloudflare, Cloudflare manages all DNS. If you point them to Bluehost, Bluehost manages all DNS.

Get Hosting with Easy DNS Management

Bluehost's DNS Zone Editor makes DNS configuration simple. Free domain with hosting. Starting at $3.99/month. 30-day guarantee.

Get Bluehost →

How to Configure DNS Records on Bluehost

  1. 1.Log into your Bluehost dashboard at my.bluehost.com
  2. 2.Navigate to Advanced > DNS Zone Editor
  3. 3.Select your domain from the dropdown
  4. 4.To add a record: select the record type (A, CNAME, MX, TXT), enter the host name and value, and click Add Record
  5. 5.To edit a record: find the existing record, click Edit, change the value, and save
  6. 6.Changes propagate within 1-4 hours on Bluehost (up to 48 hours globally)

DNS Propagation: Why Changes Take Time

When you change a DNS record, the update does not happen instantly worldwide. DNS resolvers cache records for a period called TTL (Time to Live). Until the TTL expires, resolvers continue serving the old record. This is why DNS changes can take 4-48 hours to propagate globally.

To minimize propagation time:

  • Lower the TTL to 300 seconds (5 minutes) 24 hours before making changes. This tells resolvers to check for updates more frequently.
  • Make your DNS changes after lowering TTL
  • Wait 48 hours before assuming the change is complete
  • Use whatsmydns.net to check propagation status globally

Common DNS Configurations

Pointing Domain to Bluehost Hosting

A record: @ -> [Bluehost server IP]

CNAME: www -> yourdomain.com

Setting Up Google Workspace Email

MX: @ -> aspmx.l.google.com (priority 1)

MX: @ -> alt1.aspmx.l.google.com (priority 5)

MX: @ -> alt2.aspmx.l.google.com (priority 5)

TXT: @ -> "v=spf1 include:_spf.google.com ~all"

Configuring Cloudflare CDN

Nameservers: ns1.cloudflare.com

Nameservers: ns2.cloudflare.com

# (Cloudflare imports your existing DNS records automatically)

"DNS is the foundation of your online presence. Every visitor, every email, every search engine bot — they all rely on DNS to find you. Understanding DNS records is not optional for website owners."

For more guides, see our Domain Name Guide 2026, Domain Transfer Guide, and Cloudflare CDN Setup Guide.

Get Hosting with Easy DNS Management

$3.99/month. DNS Zone Editor. Free domain. Oracle Cloud. 99.99% uptime. 30-day guarantee.

Get Bluehost →
Find Your Perfect Hosting Plan

What are you building?

Tell us about your project so we can match the perfect hosting plan.

Question 1 of 425% complete
Interactive Tool

Hosting Cost Calculator

See exactly how much you'll spend on hosting over time. Compare Bluehost vs popular alternatives and discover your potential savings.

Used to calculate transaction fees (Shopify charges 2% on sales)

Shopify Basic (3yr)
$1,044
Bluehost (3yr)
$444
You Save
$600
58% less than Shopify Basic

Frequently Asked Questions

What is DNS?

DNS (Domain Name System) is the internet's phone book. It translates human-readable domain names (like yoursite.com) into computer-readable IP addresses (like 192.168.1.1). Without DNS, you would need to memorize IP addresses to visit websites.

What is an A record?

An A record maps a domain name to an IPv4 address. It tells browsers 'when someone visits yoursite.com, send them to this IP address.' This is the most fundamental DNS record — without it, your domain cannot connect to your web hosting server.

What is a CNAME record?

A CNAME (Canonical Name) record maps one domain name to another. For example, www.yoursite.com can be a CNAME pointing to yoursite.com. CNAMEs are commonly used for subdomains, CDN configuration, and third-party services like Shopify or Blogger.

What is an MX record?

An MX (Mail Exchange) record tells email servers where to deliver email for your domain. If you use Google Workspace, your MX records point to Google's email servers. If you use Bluehost's Pro Email, MX records point to Bluehost's email servers.

How do I change DNS records on Bluehost?

Log into your Bluehost dashboard, go to Advanced > DNS Zone Editor, select your domain, and add or edit DNS records. Changes typically propagate within 4-48 hours, though Bluehost's updates are usually live within 1-4 hours.

Ready to launch?

Get Bluehost from $3.99/month with a free domain, free SSL, and 30-day money-back guarantee.

Start for $3.99

Related Articles