DYEWARE TECHNOLOGY SOLUTIONS
NETWORKS & CONNECTIVITY ยท DNS

DNS Records Explained: What They Do and How They Work

DNS records provide the information that connects domain names to websites, email services, and other internet resources. Learn what common DNS records do, how they work together, and how to troubleshoot common domain configuration problems.

Every time someone visits a website using a domain name, sends an email, or connects to an online service, the Domain Name System (DNS) helps direct that request to the appropriate destination. DNS works behind the scenes, translating human-readable domain names into the information computers need to communicate.

A domain's DNS configuration is made up of individual records. Each record serves a particular purpose, such as identifying a server's IP address, directing email to a mail server, identifying authoritative name servers, or publishing verification and security information.

Want to check a domain instead?

Use our free DNS Lookup tool to check any domain's DNS records, including IP addresses, mail servers, name servers, and other configurations.

Try the Free DNS Lookup Tool →
01

What Is DNS?

DNS stands for Domain Name System. It is a distributed, hierarchical naming system that allows computers and other devices to locate internet resources using domain names.

People generally remember names such as example.com more easily than numerical IP addresses. Computers, however, use IP addresses to identify network destinations. DNS provides the system that connects those names with the information needed to reach the appropriate servers.

For example, when someone enters a website address into a browser, DNS can provide the IP address associated with that domain. The browser can then use that address to establish a connection to the web server.

DNS does more than locate websites

DNS is also used by email systems, security services, network applications, and other internet technologies. Different DNS record types provide different kinds of information.

  • Website addresses can be associated with IPv4 and IPv6 addresses.
  • Email systems use DNS to identify receiving mail servers.
  • Domain ownership and service verification can use TXT records.
  • Certificate authorities can check CAA records before issuing certificates.
  • Name server records identify which servers are authoritative for a domain.
02

How DNS Works

When a visitor enters a domain name into a browser, the computer needs to determine where that domain is hosted. This generally involves a DNS resolver, which obtains the requested information either from its cache or by querying other DNS servers.

The DNS lookup process

  1. A user requests a domain. A visitor enters a website address, such as www.example.com, into a browser.
  2. The computer checks available DNS information. The operating system or local network may already have a cached answer for the domain.
  3. A DNS resolver handles the request. If the answer is not available locally, the request is sent to a DNS resolver, often operated by an internet service provider or a public DNS service.
  4. The resolver locates the answer. If it does not already have a valid cached answer, it can query the DNS hierarchy, including root servers, top-level domain servers, and authoritative name servers.
  5. The authoritative server provides the record. The authoritative DNS server returns the requested information for the domain.
  6. The resolver returns the answer. The resolver sends the result back to the requesting computer and may cache it for the record's remaining time to live.

Once the browser has the necessary address information, it can attempt to connect to the destination server. DNS resolution is only one part of loading a website; the web server must also be reachable and configured to respond to the request.

03

What Is a DNS Record?

A DNS record is an entry stored in a DNS zone that provides information about a domain or one of its subdomains. Records have different types, and each type has a defined purpose and data format.

DNS records are managed through the DNS provider responsible for the domain's authoritative DNS zone. Depending on the provider, records may be added or changed through a control panel, API, or other administrative interface.

Common DNS record types

  • A: Associates a name with an IPv4 address.
  • AAAA: Associates a name with an IPv6 address.
  • CNAME: Creates an alias pointing to another domain name.
  • MX: Identifies mail servers responsible for receiving email.
  • NS: Identifies authoritative name servers for a DNS zone.
  • TXT: Stores text information used for verification, email authentication, and other purposes.
  • SOA: Provides administrative information about a DNS zone.
  • CAA: Specifies which certificate authorities are permitted to issue certificates for a domain.

The following sections explain each record type and show examples of the information it contains.

04

A Record: Connecting a Domain to an IPv4 Address

An A record associates a domain name with an IPv4 address. It is one of the most common DNS record types and is frequently used to direct visitors to a website server.

For example, a domain might have an A record that points to the IPv4 address 192.0.2.25. When a DNS resolver receives a request for that name, it can return the configured address.

Example A record

example.com. 3600 IN A 192.0.2.25

In this simplified example:

  • example.com: The domain name.
  • 3600: The TTL, expressed in seconds.
  • IN: The Internet DNS class.
  • A: The record type.
  • 192.0.2.25: The IPv4 address.

A domain can have multiple A records. This can be used for configurations involving multiple servers, although DNS alone does not guarantee that traffic will be evenly distributed or that every returned server is healthy.

When would you use an A record?

  • Pointing a domain to a website's IPv4 address.
  • Directing a subdomain to a specific server.
  • Publishing an IPv4 address for an application or service.
05

AAAA Record: Connecting a Domain to an IPv6 Address

An AAAA record, commonly called a quad-A record, associates a domain name with an IPv6 address. It serves a purpose similar to an A record, but supports the newer IPv6 addressing system.

IPv6 was developed to provide a much larger address space than IPv4. As internet-connected devices and services continue to use IPv6, AAAA records allow domains to publish IPv6 destinations.

Example AAAA record

example.com. 3600 IN AAAA 2001:db8::25

A domain can have both A and AAAA records. This allows clients using IPv4 to obtain an IPv4 address and clients using IPv6 to obtain an IPv6 address, depending on their network connectivity and resolution behavior.

When would you use an AAAA record?

  • Making a website available over IPv6.
  • Publishing an IPv6 address for a server or service.
  • Supporting networks and visitors that use IPv6 connectivity.
06

CNAME Record: Creating a Domain Alias

A CNAME record, or Canonical Name record, creates an alias from one domain name to another domain name. Instead of providing an IP address directly, it identifies another name whose DNS records can be resolved.

For example, a website might use www.example.com as an alias for example.com.

Example CNAME record

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

When a resolver looks up www.example.com, it receives the canonical name and can continue resolving that name to obtain the necessary address information.

Why use a CNAME?

  • Pointing a www subdomain to the primary domain.
  • Connecting a subdomain to a hosted application.
  • Using a provider's assigned hostname instead of maintaining an IP address directly.

Important CNAME restrictions

A CNAME record cannot normally coexist with other ordinary data records at the same DNS name. For example, a name configured as a CNAME cannot also have an A or MX record at that same name.

A CNAME is also generally not permitted at the zone apex, which is the root name of a DNS zone, because the apex must contain required records such as SOA and NS. Some DNS providers offer special features such as ALIAS, ANAME, or CNAME flattening to provide similar behavior at the apex. These are provider-specific features rather than standard CNAME records.

07

MX Record: Directing Email to Mail Servers

An MX record, or Mail Exchange record, identifies the mail servers responsible for receiving email for a domain. When another mail server needs to deliver a message to someone at that domain, it looks up the domain's MX records to determine where the message should be sent.

MX records include a preference value, also called priority. Lower preference numbers indicate more preferred mail servers. If multiple mail servers are configured, the sending server can use the preference values to determine which server to try first.

Example MX records

example.com. 3600 IN MX 10 mail1.example.com. example.com. 3600 IN MX 20 mail2.example.com.

In this example, mail1.example.com has a preference of 10 and mail2.example.com has a preference of 20. The first server is preferred. The second may be used when the preferred server cannot accept the message, depending on the sending mail server's behavior.

Why MX records matter

A domain can have a functioning website but still have incorrectly configured email. If the MX records point to the wrong servers, incoming email may be delayed, rejected, or delivered to an unintended destination.

MX records identify receiving mail servers. They do not by themselves configure outgoing email, authenticate messages, or guarantee that a mailbox exists.

MX records and email authentication

Email systems commonly use additional DNS records to help receiving servers evaluate whether messages are authorized and whether they comply with the domain's email policies. These commonly include SPF, DKIM, and DMARC information, often published using TXT records or, in some cases, CNAME records.

08

NS Record: Identifying Authoritative Name Servers

An NS record, or Name Server record, identifies the authoritative DNS servers for a domain or DNS zone. These servers contain the DNS information that is considered authoritative for that zone.

When a domain is delegated to a DNS provider, its delegation information identifies the name servers responsible for answering DNS queries for that domain.

Example NS records

example.com. 86400 IN NS ns1.example.net. example.com. 86400 IN NS ns2.example.net.

In this example, ns1.example.net and ns2.example.net are listed as authoritative name servers for example.com.

Why NS records matter

If a domain is delegated to the wrong name servers, visitors and other internet services may receive incorrect DNS answers or fail to resolve the domain.

Changing DNS providers generally involves updating the domain's delegation at the registrar or parent DNS zone. The NS records displayed inside the domain's own DNS zone and the delegation published by its parent zone should be consistent.

09

TXT Record: Publishing Text and Verification Information

A TXT record stores text associated with a domain name. TXT records are commonly used for domain verification, email authentication, and publishing information that other services need to retrieve.

Unlike A and AAAA records, TXT records do not provide an IP address. Instead, they contain text data that an application or service can interpret according to its own rules.

Common TXT record uses

  • SPF: Identifies which mail servers are authorized to send email for a domain.
  • DKIM: Publishes public key information used by receiving mail systems to verify email signatures.
  • DMARC: Publishes a policy describing how receiving systems should handle messages that fail DMARC checks.
  • Domain verification: Allows a service to confirm control of a domain by checking for a specific text value.
  • Other service information: Allows applications and providers to publish domain-related configuration data.

Example TXT record

example.com. 3600 IN TXT "v=spf1 include:mail.example.net -all"

This example resembles an SPF policy. It identifies an included mail service and uses a final mechanism that indicates other sources should not be authorized by that policy.

Be careful when editing TXT records

A domain may have multiple TXT records for different purposes. However, SPF has a specific rule: a domain should not publish multiple independent SPF records at the same DNS name. Multiple SPF policies can produce a permanent error during SPF evaluation.

TXT records can also contain long values. Some DNS systems display a logical TXT record as multiple character strings. The strings are concatenated when interpreted as the record's complete value.

10

SOA Record: Administrative Information About a DNS Zone

An SOA record, or Start of Authority record, contains important administrative information about a DNS zone. Every standard DNS zone has an SOA record at its apex.

The SOA record identifies the primary name server for the zone, an administrative contact, a serial number, and several timing values used by DNS infrastructure.

Example SOA record

example.com. 3600 IN SOA ns1.example.net. hostmaster.example.com. ( 2026112901 3600 900 1209600 300 )

Understanding the SOA fields

  • Primary name server: Identifies the primary server associated with the zone's SOA.
  • Responsible party: An email-style administrative contact. The first dot represents the @ symbol in the conventional notation.
  • Serial number: A version identifier for the zone. Secondary DNS servers use it to determine whether the zone has changed.
  • Refresh: The interval at which secondary servers check the primary server for updates.
  • Retry: How long a secondary server waits before retrying a failed refresh attempt.
  • Expire: How long a secondary server may continue serving the zone without successfully refreshing it.
  • Minimum: The minimum value historically used for negative caching. In modern DNS behavior, negative caching is governed by the SOA record's TTL and MINIMUM field.

The serial number is especially important when a zone is served by multiple authoritative servers. If the primary zone changes, its serial number should be updated so secondary servers can detect the change and transfer the newer zone data.

11

CAA Record: Controlling Certificate Authority Issuance

A CAA record, or Certification Authority Authorization record, allows a domain owner to specify which certificate authorities are permitted to issue TLS certificates for the domain.

Certificate authorities can check CAA records before issuing a certificate. If a domain publishes a CAA policy, a certificate authority must follow that policy when issuing certificates covered by the applicable rules.

Example CAA record

example.com. 3600 IN CAA 0 issue "letsencrypt.org"

This example authorizes Let's Encrypt to issue certificates for the domain.

Common CAA properties

  • issue: Identifies a certificate authority permitted to issue ordinary certificates.
  • issuewild: Identifies a certificate authority permitted to issue wildcard certificates.
  • iodef: Can specify a reporting destination for certain CAA policy violation reports.

CAA records are optional, but they can provide an additional layer of control over certificate issuance. They do not replace certificate validation, TLS configuration, or other website security practices.

12

TTL and DNS Caching: Why Records Do Not Always Update Immediately

DNS records include a Time to Live value, commonly abbreviated as TTL. TTL tells DNS resolvers and other caching systems how long a record may be retained before it should be refreshed.

TTL values are expressed in seconds. For example, a TTL of 3600 means that a resolver may cache the record for up to one hour.

Example TTL values

  • 300 seconds: 5 minutes.
  • 900 seconds: 15 minutes.
  • 3600 seconds: 1 hour.
  • 86400 seconds: 24 hours.

Why caching matters

DNS caching reduces the number of queries that need to reach authoritative name servers. It can improve performance and reduce unnecessary DNS traffic.

However, caching also means that changing a DNS record does not guarantee every resolver will immediately return the new value. A resolver may continue using a previously cached answer until its remaining TTL expires.

13

DNS Propagation: What Happens After a Record Changes?

DNS propagation is the term commonly used to describe the period after a DNS change while different resolvers and networks begin returning the updated information.

The term can be misleading. DNS does not normally push every change out to every resolver across the internet. Instead, resolvers retrieve information when needed and may use cached answers until those answers expire.

Why can different people see different results?

  • Some resolvers may still have an older answer stored in their cache.
  • Other resolvers may have already queried the authoritative servers and obtained the new value.
  • Different networks may use different DNS resolvers.
  • A domain delegation or name server change may involve caching at multiple levels of the DNS hierarchy.

As a result, one person may reach the new website while another person still reaches the previous server. This does not necessarily mean that the DNS change failed.

When changing DNS providers, it is particularly important to keep the old DNS service functioning during the transition. Some resolvers may continue using the previous delegation or cached records for a period of time.

14

Troubleshooting Common DNS Problems

DNS problems can affect websites, email, and other services. The first step is to identify which service is affected and determine whether the problem is related to DNS resolution, the server, or the application itself.

Website does not load

Check the domain's A and AAAA records. Confirm that the returned addresses are correct and that the destination server is configured to accept traffic for the domain.

If the domain uses a CNAME, verify that the target name resolves correctly.

Website works with one DNS resolver but not another

Different resolvers may have cached answers, or they may be receiving different information from authoritative servers. Compare the returned records and check the domain's authoritative DNS configuration.

Email is not being received

Review the MX records and verify that they point to the correct mail servers. Also check whether the mail server names have valid address records and whether the receiving service is configured to accept mail for the domain.

Email is being marked as spam or rejected

Review the domain's SPF, DKIM, and DMARC configuration. These mechanisms help receiving mail systems evaluate whether messages are authorized and properly authenticated.

A domain change does not appear to take effect

Check the TTL values and allow existing cached answers to expire. Also verify that the change was made on the authoritative DNS provider rather than an inactive or unused DNS control panel.

Domain is using the wrong name servers

Check the domain's delegation and NS records. If the domain was moved to another DNS provider, verify that the registrar is configured with the correct name servers and that the new provider has a complete DNS zone.

15

Look Up DNS Records for a Domain

Understanding DNS records is useful, but sometimes you need to inspect the actual records configured for a domain. A DNS lookup tool makes it easier to review the information returned by DNS resolvers.

You can use the Dyeware DNS Lookup tool to check common record types, including A, AAAA, CNAME, MX, NS, TXT, SOA, and CAA. You can also compare answers returned by different DNS resolvers.

16

Where to Go Next

DNS is one part of the infrastructure that makes websites and online services work. Understanding how domains, hosting, networking, and security fit together can help you troubleshoot problems and make better decisions when managing a website.

If you are managing a website, continue learning about how website hosting works, IP subnetting, and internet connectivity.

For website security, explore how SSL certificates and TLS encryption protect information exchanged between visitors and websites.

๐Ÿ”’

Terms of Service

By accessing or continuing to use the Dyeware website, you acknowledge that you have read, understood, and agree to our Terms of Service and Privacy Policy. If you do not agree, please discontinue use of this website.