<?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[Blogs by reynascodes]]></title><description><![CDATA[Blogs by reynascodes]]></description><link>https://blog.reynascodes.com</link><generator>RSS for Node</generator><lastBuildDate>Sat, 23 May 2026 06:08:14 GMT</lastBuildDate><atom:link href="https://blog.reynascodes.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[DNS : Because Remembering IP Addresses is Not a Personality Trait]]></title><description><![CDATA[What is DNS
Have you ever thought how the mechanism behind internet looks like? What happens behind when you type youtube.com in your browser?how all these data routing is done? answer to all these question is DNS(Domain Name Service) which peoples o...]]></description><link>https://blog.reynascodes.com/dns-because-remembering-ip-addresses-is-not-a-personality-trait</link><guid isPermaLink="true">https://blog.reynascodes.com/dns-because-remembering-ip-addresses-is-not-a-personality-trait</guid><category><![CDATA[ChaiCode]]></category><category><![CDATA[Chaiaurcode]]></category><category><![CDATA[ChaiCohort]]></category><category><![CDATA[dns]]></category><category><![CDATA[dns-records]]></category><dc:creator><![CDATA[Hironmay Roy]]></dc:creator><pubDate>Wed, 21 Jan 2026 18:50:28 GMT</pubDate><content:encoded><![CDATA[<h2 id="heading-what-is-dns">What is DNS</h2>
<p>Have you ever thought how the mechanism behind internet looks like? What happens behind when you type youtube.com in your browser?how all these data routing is done? answer to all these question is <strong>DNS(Domain Name Service)</strong> which peoples often refer as phonebook or contact list of internet. When we type youtube.com in browser it it doesnt understand we need to refer the <strong>IP address</strong> something like 216.198.79.1 . Now so that we dont have to remember IP of youtube.com or any sites we visit thats why dns exists and thats the function of dns .<strong>Simply it saves the contact name as youtube.com with phone number as its IP address</strong> making internet browsing simple among us.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769012470259/633a66e1-ee41-49ee-9fa0-433c72809340.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-why-dns-records-are-needed">Why DNS records are needed</h2>
<p>Now you must be wondering what the heck is <strong>“DNS record”.</strong> Well, DNS records are some sort of instructions stored on the DNS server that tells how to handle the domain.There are many type of DNS records be we will understand the mostly used ones</p>
<ul>
<li><p><strong><mark>NS record </mark> :</strong> NS record or Name Server record tells the internet <strong>which DNS server is responsible for answerable for questions related to this domain</strong>.Simply, if your Domain is a company then NS record is headquarter of the company.</p>
<p>  <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769016751472/5e20dea0-302f-4ae8-8d2c-c3125a29117a.png" alt class="image--center mx-auto" /></p>
</li>
<li><p><strong><mark>A record</mark> :</strong> its the most important <strong>DNS record</strong> as it maps a domain (or subdomain) to an <strong>IPv4</strong> address of a server.</p>
<p>  <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769014574545/3020ce74-0fbb-4b01-be35-2d73713c867a.png" alt class="image--center mx-auto" /></p>
</li>
<li><p><strong><mark>AAAA record</mark> : AAAA record</strong> is modern version of <strong>A record</strong> only difference it holds <strong>ipv6 address</strong> instead of <strong>ipv4</strong></p>
</li>
<li><p><strong><mark>CNAME record</mark> :</strong> unlike other DNS records pointing towards an IP address, <strong>CNAME record points towards another domain</strong> and that that domain eventually resolves to an IP. Basically, CNAME record makes one domain name an alias of another domain name.</p>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769014527218/f7b1c1d1-dcd5-4247-8fd5-f02b15ded640.png" alt class="image--center mx-auto" /></p>
<p>But the million dollar question is <strong>why do we need CNAME record when we have A record as shortcut?</strong></p>
<p>The answer is <strong>to avoid hard coding IP addresses</strong>. Suppose you have hosted your site on vercel and your A record points to vercel’s IP address .But, if due to some cicumstances vercel’s IP gets changed and your site has active traffic it’d be a disaster for you. CNAME fixes this thing (refer to below image)</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769015970063/4a258f76-8921-46b4-bc29-b1bd44cf9f3d.png" alt class="image--center mx-auto" /></p>
<ul>
<li><strong><mark>MX record</mark> :</strong> MX record is resposible for emailing services it tells the internet which mail servers should receive emails for a domain.</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769017076759/45795b86-0ea5-467b-8e57-63ffbb0aee57.png" alt class="image--center mx-auto" /></p>
<ul>
<li><strong><mark>TXT Record</mark> : TXT record are like sticky notes on your domain</strong>, it stores <strong>arbitrary text</strong> in DNS mainly used for <strong>verification,security and policy instructions.</strong></li>
</ul>
<h2 id="heading-dns-architecture">DNS architecture</h2>
<p>Now that we have knowledge about DNS and DNS records you must be curious how all the records work together under the same hood.</p>
<p><strong>Together this records answers the internet a set of questions</strong> .When you search for a domain(example.com) following things happens behind the scene:</p>
<ol>
<li><p>NS records are being asked for the <strong>source of truth</strong>.</p>
</li>
<li><p>now browser asks for IP of example.com this get resolved by <strong>either A record or CNAME record</strong>.</p>
</li>
<li><p>Before loading site content <strong>TXT records gets checked</strong> .SSL certificate validation , email trust etc gets done .</p>
</li>
<li><p>MX records gets pulled for <strong>email routing</strong>.</p>
</li>
<li><p>TXT records gets back to game for <strong>email security checks</strong>.</p>
</li>
</ol>
<hr />
<p>««««««<strong>THANKS FOR GIVING IT A READ ….LETS CONNECT ON</strong> <a target="_blank" href="https://x.com/reynascodes"><strong><mark>TWITTER/X</mark></strong></a>»»»»»»</p>
]]></content:encoded></item></channel></rss>