what is dns records
DNS records are small text instructions that tell the internet where to send
traffic for a domain name (like example.com), usually mapping it to IP
addresses, mail servers, and other services.
What Is DNS Records? (Quick Scoop)
Imagine the internet as a giant phonebook, and DNS records are the entries
inside it: they translate humanâfriendly names (mywebsite.com) into
machineâfriendly IP addresses (like 192.0.2.10). Without them, browsers and
apps would not know where your website, email, or other services actually
live.
How DNS Records Work (In Plain English)
When you type a website into your browser:
- Your device asks a DNS resolver: âWhere is
example.com?â - The resolver looks up the DNS records stored on authoritative DNS servers in whatâs called a zone file.
- The relevant record (for example, an A record) responds with an IP address like
93.184.216.34.
- Your browser then connects to that IP and loads the site.
Each DNS record line in a zone file uses a special syntax (DNS syntax) and includes commands the DNS server understands, plus a TTL (timeâtoâlive) that tells resolvers how long they can cache that record before refreshing it.
Main Parts of a DNS Record
Most DNS records include:
- Name : The domain or subdomain, e.g.,
example.comorapi.example.com.
- Type : What kind of record it is (A, AAAA, MX, CNAME, etc.).
- Value / Data : The target, like an IP address, another hostname, or some text data.
- TTL (TimeâtoâLive) : Number of seconds resolvers cache the record before asking again (e.g., 300, 3600, 14400).
- Class : Usually
INfor internet, with a few rare alternatives likeCHorHS.
A simplified example line for an A record might look like:
example.com. 3600 IN A 93.184.216.34
Common Types of DNS Records
Hereâs a compact overview of the most important record types youâll see dayâtoâday.
Address & routing records
- A record
- Maps a domain name to an IPv4 address (e.g.,
192.168.1.1).
- Maps a domain name to an IPv4 address (e.g.,
* Used for almost all standard websites.
- AAAA record
- Maps a domain name to an IPv6 address (e.g.,
2001:0db8:85a3::8a2e:0370:7334).
- Maps a domain name to an IPv6 address (e.g.,
* Important as more networks adopt IPv6.
- CNAME record (Canonical Name)
- Points one name to another name instead of an IP, for example
www.example.comâexample.com.
- Points one name to another name instead of an IP, for example
* Helps avoid duplicating IPs across many subdomains.
Emailârelated records
- MX record (Mail Exchange)
- Tells the world which mail servers handle email for your domain, e.g.,
mail.example.com.
- Tells the world which mail servers handle email for your domain, e.g.,
* Also supports priority values so email services know which server to try first.
- TXT record
- Stores arbitrary text; heavily used for SPF, DKIM, DMARC, and domain verification (Google, Microsoft, etc.).
* Typical example: SPF rules that say which servers can send email on behalf of your domain.
Control & authority records
- NS record (Name Server)
- Shows which name servers are authoritative for your domain (the servers that hold your real DNS data).
* Without NS records pointing correctly, your domain effectively disappears from the internet.
- SOA record (Start of Authority)
- Defines core parameters for the DNS zone: primary name server, admin email, serial number, and timing values for how secondary servers update.
* Required for every DNS zone and used to coordinate replication between DNS servers.
Quick HTML Table: Important DNS Record Types
Below is an HTML table as requested, summarizing common record types and what they do.
html
<table>
<thead>
<tr>
<th>Record Type</th>
<th>Main Purpose</th>
<th>Simple Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>Map domain to IPv4 address.[web:7]</td>
<td><code>example.com â 192.168.1.1</code>[web:7]</td>
</tr>
<tr>
<td>AAAA</td>
<td>Map domain to IPv6 address.[web:7]</td>
<td><code>example.com â 2001:0db8:85a3::8a2e:0370:7334</code>[web:7]</td>
</tr>
<tr>
<td>CNAME</td>
<td>Alias one name to another hostname.[web:7][web:9]</td>
<td><code>www.example.com â example.com</code>[web:7][web:9]</td>
</tr>
<tr>
<td>MX</td>
<td>Specify mail servers for a domain.[web:5]</td>
<td><code>example.com â mail.example.com (priority 10)</code>[web:5]</td>
</tr>
<tr>
<td>TXT</td>
<td>Store text for SPF, DKIM, verification, etc.[web:2][web:7]</td>
<td><code>"v=spf1 include:_spf.google.com ~all"</code>[web:2]</td>
</tr>
<tr>
<td>NS</td>
<td>Define authoritative name servers.[web:5][web:7][web:9]</td>
<td><code>example.com â ns1.example.com, ns2.example.com</code>[web:7][web:9]</td>
</tr>
<tr>
<td>SOA</td>
<td>Provide zone metadata (primary NS, admin, timers).[web:7][web:9]</td>
<td>Zone start record for <code>example.com</code>.[web:7][web:9]</td>
</tr>
</tbody>
</table>
Why DNS Records Matter in 2026
DNS records are more than just âwhere is my website?ââthey now anchor:
- Security : SPF, DKIM, and DMARC policies in TXT records are key to fighting phishing and email spoofing.
- Performance : Correct TTLs and global DNS providers reduce latency and improve reliability.
- Cloud & microservices: Modern apps rely on many subdomains and services, often connected via CNAMEs and various records for internal routing.
- Ownership proof : DNSâbased verification is used by certificate authorities and SaaS platforms to prove you control a domain.
A Tiny Story Example
You buy mycoolstartup.com and want a site and email:
- You create A records pointing
mycoolstartup.comandwww.mycoolstartup.comto your hosting serverâs IP. - You set MX records so email goes to your chosen mail provider.
- The provider asks you to add TXT records for SPF/DKIM to improve email deliverability.
- Your registrar already has NS records pointing to their DNS service, and that service hosts your entire zone with an SOA record at the top.
Within minutes to hours (depending on TTL), your website and email begin working globally.
SEO / Meta Description
Meta description (for SEO):
DNS records are the instructions that map domain names like example.com to
IP addresses, mail servers, and services, making websites, email, and modern
internet apps work reliably and securely.
TL;DR: DNS records are structured text entries in DNS servers that describe how to handle traffic for a domainâwhat IP to use, where to send email, which servers are authoritative, and how long to cache that information.
Information gathered from public forums or data available on the internet and portrayed here.