<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DNS Record]]></title><description><![CDATA[DNS Record]]></description><link>https://ankur215.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 14:56:08 GMT</lastBuildDate><atom:link href="https://ankur215.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[DNS Record]]></title><description><![CDATA[What is a DNS Record?
DNS Records or Zone files are the 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.Th...]]></description><link>https://ankur215.hashnode.dev/dns-record</link><guid isPermaLink="true">https://ankur215.hashnode.dev/dns-record</guid><category><![CDATA[ChaiCode]]></category><category><![CDATA[@hiteshchoudharylco]]></category><category><![CDATA[#piyushgarag]]></category><dc:creator><![CDATA[Ankur Shukla]]></dc:creator><pubDate>Sun, 18 Jan 2026 12:52:25 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/q10VITrVYUM/upload/64f6ed0e02576fa6651e60a5e8544c64.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-what-is-a-dns-record">What is a DNS Record?</h2>
<p>DNS Records or Zone files are the 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.<br />These records consist of a series of text files written in what is known as DNS syntax.</p>
<p>DNS syntax is just a string of characters used as commands that tell DNS servers what to do.</p>
<p>All DNS records also have a TTL, which stands for time to live, and indicates how often a DNS server will refresh that record.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1768740561968/46635300-4953-42aa-a065-8544a214ca8b.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-most-common-types-of-dns-records">Most common types of DNS records</h2>
<p><strong>A Record:</strong> The record that holds the IP address of a domain. A Stands for “address” and this is the most fundamental type of DNS record: it indicates the IP address of a given domain.</p>
<p>Example:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><a target="_blank" href="http://example.com"><strong>example.com</strong></a></td><td><strong>record type:</strong></td><td><strong>value:</strong></td><td><strong>TTL</strong></td></tr>
</thead>
<tbody>
<tr>
<td>@</td><td>A</td><td>192.0.2.1</td><td>14400</td></tr>
</tbody>
</table>
</div><p><strong>AAAA Record:</strong> AAAA records match a domain name to an IPv6 address. DNS AA records are exactly like DNS A records, except that they store a domain’s IPv6 address instead of IPv4 address  </p>
<p>Example:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><a target="_blank" href="http://example.com"><strong>example.com</strong></a></td><td><strong>record type:</strong></td><td><strong>value:</strong></td><td><strong>TTL</strong></td></tr>
</thead>
<tbody>
<tr>
<td>@</td><td>AAAA</td><td>2001:0db8:85a3:0000:  </td></tr>
</tbody>
</table>
</div><p>0000:8a2e:0370:7334 | 14400 |</p>
<p><strong>CNAME Records:</strong> A “Canonical Name” (CNAME) records points from an alias domain to a canonical domain. A CNAME record is used in lieu of A record, when a domain or subdomain is an alias of another domain. All CNAME records must point to a domain, never to an IP address.<br />A frequesnt misconception that CNAME reecord must always resolve to the same website as the domain it points to, but this is not the case. The CNAME records only point the client to the same IP address as the root domain.<br />Example:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><a target="_blank" href="http://blog.example.com"><strong>blog.example.com</strong></a></td><td><strong>record type:</strong></td><td><strong>value:</strong></td><td><strong>TTL</strong></td></tr>
</thead>
<tbody>
<tr>
<td>@</td><td>CNAME</td><td>is an alias of <a target="_blank" href="http://example.com">example.com</a></td><td>32600</td></tr>
</tbody>
</table>
</div><p><strong>MX Records:</strong> A DNS ‘mail exchange’ (MX) records direct email to a mail server. the MX record indicstes how email messages should be routed in accordance with the simple mail transfer protocol(SMTP). and it proceesd by MTA(message transfer agent) which responsible for querying the MX records, ex: when a user sends email, the MTA sends a DNS query to identufy the mail servers for the email recipients. The MTA establishes the connection wuth those mail servers, starting with the prioritized domains.  </p>
<p>Example:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><a target="_blank" href="http://example.com"><strong>example.com</strong></a></td><td><strong>record type:</strong></td><td><strong>priority:</strong></td><td><strong>value:</strong></td><td><strong>TTL</strong></td></tr>
</thead>
<tbody>
<tr>
<td>@</td><td>MX</td><td>10</td><td><a target="_blank" href="http://mailhost1.example.com">mailhost1.example.com</a></td><td>45000</td></tr>
<tr>
<td>@</td><td>MX</td><td>20</td><td><a target="_blank" href="http://mailhost2.example.com">mailhost2.example.com</a></td><td>45000</td></tr>
</tbody>
</table>
</div><p><strong>NS Record: NS stands for ‘name server’, and the</strong> nameserver records indicates which DNS DNS server is authoritative for that domain. Besically NS records tell the internet where to go to find the a domain’s IP adress. A domain has multiple NS records which can indicate primary and secondary name servers for that domain. Users won’t be able to load websotes/application without configuring NS properly.  </p>
<p>Example:  </p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><a target="_blank" href="http://example.com"><strong>example.com</strong></a></td><td><strong>record type:</strong></td><td><strong>value:</strong></td><td><strong>TTL</strong></td></tr>
</thead>
<tbody>
<tr>
<td>@</td><td>NS</td><td><a target="_blank" href="http://ns1.exampleserver.com">ns1.exampleserver.com</a></td><td>21600</td></tr>
</tbody>
</table>
</div><p><strong>TXT Recods:</strong> The DNS TXT record lets domain administrator enter text into the Domain NAme System. The text stored in the form of one or more strings whithin quotation marks. The TXT record was originally intended as a place for human readable notes. However, now it is alos possible to put some machine-redable data into TXT records. One domain can have mant TXT records.<br />Eg;  </p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><a target="_blank" href="http://example.com"><strong>example.com</strong></a></td><td><strong>Record type:</strong></td><td><strong>value:</strong></td><td><strong>TTL</strong></td></tr>
</thead>
<tbody>
<tr>
<td>@</td><td>TXT</td><td>"This is an awesome domain! Definitely not spammy."</td><td>32600</td></tr>
</tbody>
</table>
</div>]]></content:encoded></item></channel></rss>