Back to blog

What Are DNS Entries? A Guide to Understanding Their Purpose and Types

Discover the essential role of DNS entries and their various types. Understand their purpose to enhance your web experience. Read the guide now!

What Are DNS Entries? A Practical Guide to DNS Records and How They Work

Every website, email service, and online application depends on a system most people never see. That system is DNS, and if you manage a domain, understanding how DNS entries work will save you from downtime, email problems, and security headaches. This guide breaks down what DNS entries are, covers all the dns record types you need to know, and gives you practical advice for managing them.

What Are DNS Entries? (Answer the Main Question Fast)

DNS entries are text instructions stored on authoritative dns servers that map a domain name to technical data like an ip address, mail server, or host name. They are the core building blocks of the domain name system, the infrastructure that makes human readable domain names usable on the internet.

Every time a user types a domain name like example.com into a browser, a dns lookup reads these dns records to find the correct server. DNS entries dictate how a domain name connects to an ip address, and without them, no one could reach your website or send you email. In everyday usage, "DNS entries" and "dns records" mean the same thing.

Here is a concrete example: an A record for example.com record points to the ipv4 address 93.184.216.34. When your browser receives that address, it knows exactly which server to connect to and loads the page.

How DNS Records Work Behind the Scenes

Think of the DNS system as the phonebook of the internet. Instead of looking up a person's name to find their phone number, dns translates domain names into ip addresses so your device can connect to the right server. A forward dns lookup finds ip addresses for domain names, while a reverse dns lookup identifies domain names from ip addresses.

The basic flow of a dns query works like this: (1) you type www.example.com into your browser, (2) your device contacts a resolver - often provided by your ISP or a public service like Google Public DNS, (3) the resolver queries the authoritative nameserver responsible for example.com, and (4) that name server returns the requested dns record. For a standard website request, the response is usually an A record containing an ipv4 address like 93.184.216.34, with a time to live of 3600 seconds. The resolver caches that answer so future requests don't repeat the entire chain.

Each dns entry has key fields: the name (which host name it describes), the record type (A, MX, CNAME, etc.), the value (an ip address, another hostname, or text data), and the TTL. Some records also carry priority or weight values that control how services like email routing behave.

The Most Common Types of DNS Records

DNS record types define what each dns entry does. While dozens of types exist, the most common types cover nearly every real-world website and email setup. DNS records include A, AAAA, CNAME, MX, and NS records, along with SOA, TXT, and PTR.

A Records (IPv4 Address Records)

An A record is the dns entry that maps a host name like example.com or www.example.com to a 32-bit ipv4 address. A records connect domain names to IPv4 addresses, making them essential for browsers to locate hosting servers over IPv4.

For example, example.com might have an A record pointing to 93.184.216.34 with a TTL of 3600 seconds. You can configure multiple A records for the same host name to support load balancing or redundancy. Note that if a host only has IPv6 connectivity, you would use an aaaa record instead - only the a record handles IPv4.

AAAA Records (IPv6 Address Records)

An aaaa record maps a host name to a 128-bit IPv6 address. AAAA records link domain names to IPv6 addresses, using addresses like 2001:db8:85a3::8a2e:370:7334. With IPv4 exhaustion accelerating, A and AAAA records are essential for browsers to locate hosting servers regardless of protocol version.

A practical dual-stack setup might look like this: www.example.com with an A record for 192.0.2.1 and an aaaa record maps to 2001:db8::1. Having both A and AAAA records lets users connect over either IPv4 or IPv6 depending on their network. As of early 2026, roughly 46% of global users access the internet over IPv6, making this more important than ever.

CNAME Records (Canonical Name / Alias Records)

A cname record is an alias that points one host name to another canonical domain name instead of directly to an ip address. CNAME records alias one domain to another domain, which is useful for subdomains like blog.example.com that you want to point at a hosted platform without managing IPs yourself.

Consider this example: api.example.com has a cname to backend.example.com, which itself holds A and AAAA records. CNAME records allow changes to server ip addresses without updating multiple records - change the corresponding ip address on the canonical name, and every alias follows automatically. One important rule: the zone root (example.com) usually cannot be a cname because it must host other records like NS and SOA.

MX Records (Mail Exchanger Records)

An mx record specifies which mail servers accept email for a specific domain. MX records direct emails to your domain mail server and include a priority value so mail exchange servers know which server to try first.

A realistic setup: example.com with MX 10 mail.example.com and MX 20 backup-mail.example.com. The host names used in MX records must resolve via A or AAAA records to valid ip addresses - they cannot be CNAMEs. Correctly configured MX and SPF/TXT records are essential to avoid emails landing in spam, since mail servers use these to verify legitimacy.

NS Records (Nameserver Records)

NS records indicate the authoritative nameservers for a domain. They tell the rest of the internet where to go to find all other dns records for that domain name.

For example, example.com might list NS ns1.dns-host.com and NS ns2.dns-host.com. These ns records exist both at the domain registrar (parent zone) and inside the zone file itself for consistency. Without correct NS records, a dns lookup for any record type will fail and the domain will appear offline.

SOA Records (Start of Authority Records)

An soa record is the administrative dns record that appears at the start of every zone file. Each dns zone must have exactly one SOA record.

The SOA stores data including the primary name server, a contact email for the domain administrator, a serial number (commonly formatted as 2024060101 using YYYYMMDDnn), and refresh/retry/expire timings. Secondary dns servers use SOA data to know when to synchronize their copies of the zone. If the serial number hasn't changed, secondary servers skip the refresh, keeping dns propagation efficient.

TXT Records (Text Records)

Txt records are flexible dns entries that store arbitrary textual information related to domains or subdomains. They support services like email security policies, domain ownership verification, and external service configuration.

Common uses include an spf record that identifies authorized mail servers for your domain using sender policy framework syntax, DKIM public key publishing, and DMARC policies. A concrete example: example.com with a TXT record of "v=spf1 include:_spf.google.com ~all" for a domain using Google Workspace. TXT records store email verification records like DKIM and DMARC, and multiple TXT records can exist for one host name. Note that they don't affect where a website is hosted - they are vital for security and service configuration only.

PTR Records (Reverse DNS Records)

A ptr record is the opposite of A or AAAA records: it maps an ip address back to a host name for reverse dns lookup. Reverse dns lookup identifies domain names from ip addresses, and PTR records live in special reverse lookup zones (like 34.216.184.93.in-addr.arpa) managed by whoever controls the address ranges.

For example, ip address 93.184.216.34 might have a PTR record pointing to server.example.com. PTR records help detect spam by verifying email server legitimacy - many email providers check PTR records on sending mail servers before accepting messages. These records are typically set by the web hosting provider or ISP, not by domain owners at the registrar level.

Other Important and Specialized DNS Record Types

Beyond the most common types, specialized dns records exist for security, issuing digital certificates, service discovery, and complex domain setups. Not every website needs all of these, but understanding them helps when you encounter advanced dns settings or troubleshooting scenarios.

CAA Records (Certificate Authority Authorization)

A caa record states which certificate authorities are allowed to issue certificates - specifically TLS/SSL digital certificates - for a domain. This prevents unauthorized certificate issuance and strengthens email security and website trust. For example, a CAA record on example.com might allow only "letsencrypt.org" and "digicert.com" to issue certificates. Major CAs have been required to respect CAA records since around 2017. Incorrect CAA records can block legitimate certificate requests, so verify them before requesting new certs.

SRV Records (Service Locator Records)

An srv record specifies the hostname and port for specific services such as SIP, XMPP, or Microsoft 365 services. It includes data like service name, protocol, priority, weight, port, and target host name.

A concrete example: _sip._tcp.example.com pointing to sipserver.example.com on port 5060 for VoIP. The target host in an SRV record must have valid A or AAAA records, similar to MX records. SRV records are heavily used by enterprise applications and clients to find the right server automatically for various services.

DNAME Records (Delegation Name Records)

A dname record redirects an entire subtree of the DNS - all subdomains - from one domain to another. Unlike a cname record, which only aliases a single host name, DNAME covers every descendant. For example, oldbrand.example.com with a DNAME to newbrand.example.net redirects any subdomain like app.oldbrand.example.com to app.newbrand.example.net. This is mostly used in complex, large-scale environments and rarely needed for small sites.

ALIAS / ANAME-Style Records (Root-Level Aliases)

ALIAS (or ANAME, or CNAME flattening) records are provider-specific solutions that let the zone apex (example.com) behave like a CNAME to another host name. Standard dns syntax does not allow a true CNAME at the zone root because it must also host NS and SOA records.

A typical use case: example.com ALIAS to yourapp.hosted-service.com, useful when pointing a root domain to a CDN or managed hosting that frequently changes ip addresses. The naming and dns syntax depend on your DNS provider, so focus on the use case rather than vendor-specific commands.

NSEC Records (DNSSEC Next Secure Records)

NSEC records are DNSSEC-related entries that prove certain dns records do not exist within a signed zone. They help a dns server respond securely with "there is no such name or record" rather than silence. NSEC records are automatically handled when DNSSEC is enabled and are not edited manually. DNSSEC and associated records like the dnskey record have been widely deployed by large TLDs like .org and .gov since the early 2010s, improving integrity and preventing spoofing attacks.

CERT Records (Certificate Records)

CERT records hold digital certificates or certificate-related data such as PKIX or PGP certificates within DNS. While not common for typical websites, they can support advanced security schemes - for example, an organization publishing an S/MIME certificate fingerprint via a CERT record for secure email. Modern deployments often prefer newer mechanisms like DANE with TLSA records, but CERT remains part of the dns record family.

DNS Records, Domain Ownership, and Hosting

DNS records are the technical manifestation of domain ownership and control. You register a domain name with a registrar (that is ownership), but where your website, email server, and other services actually run is determined by your dns entries.

To migrate hosting, you update A and AAAA records to point to the new server. To switch email providers, you change MX records and update TXT records for SPF and DKIM. The domain itself doesn't change - just the data inside your dns records page at your provider.

Domain owners often verify ownership through DNS. Services like Google Search Console or Microsoft 365 ask you to create a special TXT record with a unique string. Once the service can verify that TXT record exists, your access and control are confirmed.

How to View and Check Your DNS Records (DNS Lookup)

A dns lookup is the process of querying dns servers to see what records exist for a domain or host name. You can perform lookups using online tools or command-line utilities.

Common commands include dig A example.com, nslookup -type=MX example.com, and host -t AAAA example.com. Many tools let you request a specific record type or check all types at once. Keep in mind that results can differ between dns servers like Google Public DNS and Cloudflare due to caching. DNS changes can take 24 to 48 hours to propagate globally, so if you recently updated a record, allow time before expecting consistent results across all resolvers.

Best Practices for Managing DNS Entries

Good DNS hygiene directly impacts uptime, performance, and security for any online service. Here are practical steps to keep your dns settings clean:

  • Use descriptive host names like app.example.com, mail.example.com, and api.example.com. Document every dns entry with its purpose and creation date.

  • Set conservative but practical TTL values between 300 and 3600 seconds. Lower TTLs help during migrations; higher TTLs reduce dns query traffic for stable records.

  • Secure access to your DNS management panel with strong passwords, MFA, and restricted roles. Anyone who gains control of your DNS can redirect traffic, intercept email, or hijack your domain.

  • Run periodic audits: remove obsolete records for decommissioned servers, confirm MX and SPF records match your current email server, and verify that reverse DNS (PTR) aligns with your mail server host names.

DNS entries are foundational to every service you run online. A single misconfigured record can take down your website, bounce your email, or open security vulnerabilities.

Start by running a dns lookup on your own domain today. Compare results across multiple resolvers, document what you find, and clean up anything that looks stale or incorrect. Your future self will thank you.