Back to Blog
    DNS
    Networking
    Domain Management

    Understanding DNS Records: A Complete Guide

    John Smith
    Senior Systems Engineer
    January 15, 2025
    8 min read
    Understanding DNS Records: A Complete Guide

    The Domain Name System (DNS) is a fundamental component of the internet that translates human-readable domain names into IP addresses that computers use to identify each other.

    What are DNS Records?

    DNS records are instructions that live in authoritative DNS servers and provide information about a domain including what IP address is associated with that domain and how to handle requests for that domain.

    Common Types of DNS Records

    A Record

    The "A" stands for "Address" and this is the most fundamental type of DNS record: it indicates the IP address of a given domain.

    example.com.     IN     A     192.0.2.1

    AAAA Record

    Similar to an A record, but rather than pointing to an IPv4 address, it points to an IPv6 address.

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

    CNAME Record

    The Canonical Name record is used to alias one domain to another. This is particularly useful when running multiple services (like a website and an email server) from a single IP address.

    www.example.com.     IN     CNAME     example.com.

    MX Record

    The Mail Exchange record directs email to a mail server. The priority field specifies preference when multiple mail servers are available.

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

    TXT Record

    Text records are used to hold text information. They're commonly used for domain verification and SPF records for email authentication.

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

    How DNS Resolution Works

    When you type a URL into your browser, a DNS resolution process begins:

    1. The browser checks its own cache for the domain.
    2. If not found, it asks the operating system.
    3. The OS checks its own cache and the hosts file.
    4. If still not found, it queries the recursive DNS resolver at your ISP.
    5. The resolver checks its cache; if not found, it starts a recursive query.
    6. It begins at the root nameservers, then TLD nameservers, and finally the authoritative nameserver for the domain.
    7. Once found, the IP is returned to the browser, which can then establish a connection.

    DNS Record Time-to-Live (TTL)

    Each DNS record has a TTL value that specifies how long the record should be cached before requiring a refresh from the authoritative DNS server. TTL is specified in seconds.

    Conclusion

    Understanding DNS records is essential for managing your online presence. Properly configured DNS ensures that your websites and services are accessible and email is delivered correctly.