DNS Records Explained for Beginners
DNS March 19, 2026 4 min read

DNS Records Explained for Beginners

Discover the basics of DNS records, essential for managing domain names. Learn how they work and their types, tailored for beginners.

99

99redirect

Understanding DNS Records: A Beginner's Guide

If you've ever dealt with websites, domains, or hosting, you've likely come across the term DNS. DNS, or Domain Name System, is essentially the phonebook of the internet. It translates human-friendly domain names like www.example.com into IP addresses that computers use to identify each other on the network. At the heart of this system are DNS records. This article will guide you through the basics of DNS records, making it easier for beginners to understand how they work and how to manage them effectively.

What is a DNS Record?

A DNS record is a database record used to map a URL to an IP address. There are several types of DNS records, each serving a different purpose. Understanding these records is crucial for managing your domain name effectively.

Types of DNS Records

Here are the most common types of DNS records you’ll encounter:

A Record

An A record, or Address record, is the most basic type of DNS record. It maps a domain name to an IPv4 address. For example, if you want www.example.com to point to the IP address 192.0.2.1, you would use an A record.

example.com. IN A 192.0.2.1

AAAA Record

Similar to an A record, an AAAA record maps a domain name to an IPv6 address. With the growing adoption of IPv6, AAAA records are becoming increasingly important.

example.com. IN AAAA 2001:0db8:85a3:0000:0000:8a2e:0370:7334

CNAME Record

CNAME stands for Canonical Name. A CNAME record is used to alias one domain name to another. For example, you might have a CNAME record to point blog.example.com to example.com.

blog.example.com. IN CNAME example.com.

MX Record

MX records, or Mail Exchange records, are used to direct email to a mail server. Each MX record has a priority, and mail servers will attempt delivery to the server with the lowest priority number first.

example.com. IN MX 10 mail.example.com.

TXT Record

TXT records are used to store text information. They are often used for verification purposes, such as verifying domain ownership with services like Google or setting up email authentication methods like SPF and DKIM.

example.com. IN TXT "v=spf1 include:_spf.google.com ~all"

NS Record

NS records, or Name Server records, designate the authoritative DNS servers for a domain. These records tell the internet where to go to find the DNS records for your domain.

example.com. IN NS ns1.example.com.
example.com. IN NS ns2.example.com.

How DNS Records Work

When you type a URL into your browser, a series of DNS queries begins. Here’s a simplified version of how this works:

  1. Domain Query: Your browser queries a DNS resolver to find the IP address associated with the domain.
  2. Resolver Query: The resolver queries a root DNS server, which directs it to a TLD (Top-Level Domain) server (for .com, .org, etc.).
  3. TLD Query: The TLD server directs the resolver to the domain's authoritative DNS server.
  4. Final Query: The resolver asks the authoritative server for the specific DNS record and returns the result to your browser.

Managing DNS Records

Managing DNS records can seem daunting, but most domain registrars provide a user-friendly interface for making changes. Here are some tips:

  • Back Up Your Records: Before making changes, back up your existing DNS records. This ensures you can restore them if something goes wrong.
  • Use a TTL That Fits Your Needs: TTL, or Time to Live, determines how long a record is cached by DNS servers. Lower TTL values mean changes propagate faster but increase the load on your DNS server.
  • Verify Changes: Use tools like dig or nslookup to verify changes to your DNS records have propagated.

Practical Examples

Pointing a Domain to a Web Server

To point your domain to a web server, you’ll need to set an A record:

domain.com. IN A 203.0.113.123

Setting Up Email

To direct email to your mail server, you might set an MX record like this:

domain.com. IN MX 10 mail.domain.com.

And ensure you have an A record for mail.domain.com:

mail.domain.com. IN A 203.0.113.124

Adding a Subdomain

If you want to add a subdomain, blog.domain.com, you could use a CNAME record:

blog.domain.com. IN CNAME domain.com.

FAQ

What is a DNS record?

A DNS record is a database entry that maps a domain name to an IP address or provides other domain-related information.

How do I change my DNS records?

You can change your DNS records through your domain registrar’s control panel or DNS hosting provider.

How long does it take for DNS changes to propagate?

DNS propagation can take anywhere from a few minutes to 48 hours, depending on the TTL settings and the DNS cache.

Why use a CNAME record?

CNAME records are useful for aliasing one domain name to another, allowing you to point multiple domains to the same IP address without managing separate A records.

What happens if I delete a DNS record?

Deleting a DNS record can make your domain or services unavailable. Always back up your DNS settings before making changes.

Ready to redirect?

Set up your first domain redirect in minutes. Free plan available.

Get started free