<?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 Resolution Works]]></title><description><![CDATA[DNS Resolution Works]]></description><link>https://dnsresolutionworks1.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 11:09:17 GMT</lastBuildDate><atom:link href="https://dnsresolutionworks1.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How DNS Resolution Works]]></title><description><![CDATA[What is DNS and why name resolution exists
Domain Name System (DNS) is Often called the internet’s phonebok. Human can easily remember names like google.com but computers comunicate with IP address such as 142.250.183.14. DNS exists to translate doma...]]></description><link>https://dnsresolutionworks1.hashnode.dev/how-dns-resolution-works</link><guid isPermaLink="true">https://dnsresolutionworks1.hashnode.dev/how-dns-resolution-works</guid><category><![CDATA[#DNS Resolution]]></category><dc:creator><![CDATA[Subhadip dutta]]></dc:creator><pubDate>Wed, 28 Jan 2026 08:49:15 GMT</pubDate><content:encoded><![CDATA[<h2 id="heading-what-is-dns-and-why-name-resolution-exists">What is DNS and why name resolution exists</h2>
<p>Domain Name System (DNS) is Often called the internet’s phonebok. Human can easily remember names like google.com but computers comunicate with IP address such as 142.250.183.14. DNS exists to translate domain names into IP addresses, this process known as name resolution.</p>
<p>Without DNS , users need to remember IP addresses for each website, which is quite difficult task.</p>
<h2 id="heading-what-is-dns-and-why-name-resolution-exists-1">What is DNS and why name resolution exists</h2>
<p>dig (Domain Information Groper) is a DNS diagnostic and troubleshooting tool that is used to query DNS servers and inspect how name resolution works.It is commonly used to Debug DNS issues, understand which name servers are responsible for a domain, inspect DNS records (A, NS, MX, etc.), learn how DNS resolution happens step by step.</p>
<p>eg:- dig chaicode.com</p>
<h2 id="heading-how-dns-resolution-happens">How DNS resolution happens</h2>
<p>DNS resolution happens followingly</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769571491655/964f2d78-7555-4250-b00c-ed1546b8e8c9.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-digns-and-root-name-servers">dig.NS and root Name Servers</h2>
<p><strong>command:-</strong> dig.NS</p>
<p>This query asks “Who are the name servers for the root zone?“</p>
<p>This . represents the DNS root. Root server do not store domain IPs. They only direct the queries to correct TLD servers.</p>
<p><strong>Root DNS Server:-</strong> These are the highest-level DNS servers and know where to find the TLD servers. They are crucial for directing DNS queries to the correct locations.</p>
<h2 id="heading-dig-com-ns-and-tld-name-servers"><strong>dig com Ns and TLD Name Servers</strong></h2>
<p><strong>command: -</strong> dig com NS</p>
<p>This query asks “Which name servers manage the .com domain?“</p>
<p><strong>TLD Servers:-</strong> Top Level Domain (TLD) servers manage domain extensions like .com, .org, .net, .edu, .gov and others. They know which authoritative servers are responsible for domains under them.They help route queries to the authoritative DNS servers for specific domains.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769570013622/d530c720-08de-4457-8c8c-368fdf86585c.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-dig-googlecom-ns-and-authoritative-name-servers">dig google.com NS and authoritative name servers</h2>
<p><strong>command: -</strong> dig google.com NS</p>
<p>This query asks “Which name servers are authoratitative for google.com?“</p>
<p><strong>Authoritative Name Server:-</strong> These are the servers that store the actual DNS records for domain names. They are responsible for providing the correct IP addresses that allow users to reach websites.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769571082174/6ecfc572-3a54-4286-a260-e2121b738ef2.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-dig-googlecom-and-the-full-dns-resolution-flow">dig google.com and the full DNS resolution flow</h2>
<p><strong>command: -</strong> dig google.com</p>
<p>This query returns the <strong>final IP address</strong> .</p>
<p><strong>Step by Step Resolution flow:-</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769571351246/06d4a9ce-b568-43e8-a0e9-1ade2a775b58.png" alt class="image--center mx-auto" /></p>
<p>when we type https://google.com in a browser:-</p>
<p>1.Browser ask the recursive resolver for the IP</p>
<p>2.resolver follows the pattern Root → TLD → Authoritative server</p>
<p>3.Authoritative server returns the actual IP address.</p>
<p>4.Browser connects to the Server with the IP.</p>
]]></content:encoded></item></channel></rss>