<?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[Complete Guide About DNS Resolution]]></title><description><![CDATA[Complete Guide About DNS Resolution]]></description><link>https://completeguidefordnsresolutionbyshivamkumar.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 20:43:03 GMT</lastBuildDate><atom:link href="https://completeguidefordnsresolutionbyshivamkumar.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Complete Guide about DNS Resolution- from basics]]></title><description><![CDATA[🤔 How Does the Internet Understand Website Names?
When you type a website like:
www.google.com

your browser shows the website in seconds.
But computers do not understand names like google.com.
So the big question is:

How does the browser convert a...]]></description><link>https://completeguidefordnsresolutionbyshivamkumar.hashnode.dev/complete-guide-about-dns-resolution-from-basics</link><guid isPermaLink="true">https://completeguidefordnsresolutionbyshivamkumar.hashnode.dev/complete-guide-about-dns-resolution-from-basics</guid><category><![CDATA[dns]]></category><category><![CDATA[Chaiaurcode]]></category><category><![CDATA[ChaiCohort]]></category><category><![CDATA[ChaiCode]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[#DNS Resolution]]></category><category><![CDATA[Browsers]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Cohort2026]]></category><dc:creator><![CDATA[Shivam Kumar]]></dc:creator><pubDate>Fri, 30 Jan 2026 10:54:34 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1769770324481/5f92b851-2101-4c46-8973-084797b94fd6.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-how-does-the-internet-understand-website-names">🤔 How Does the Internet Understand Website Names?</h2>
<p>When you type a website like:</p>
<pre><code class="lang-plaintext">www.google.com
</code></pre>
<p>your browser shows the website in seconds.</p>
<p>But computers <strong>do not understand names</strong> like <a target="_blank" href="http://google.com"><code>google.com</code></a>.</p>
<p>So the big question is:</p>
<blockquote>
<p><strong>How does the browser convert a name into something the computer understands?</strong></p>
</blockquote>
<p>This process is called <strong>DNS Resolution</strong>.</p>
<hr />
<h2 id="heading-what-is-dns-and-why-name-resolution-exists">📖 What is DNS and Why Name Resolution Exists?</h2>
<h3 id="heading-what-is-dns">👉 What is DNS?</h3>
<p><strong>DNS stands for Domain Name System</strong></p>
<p>DNS is the <strong>phonebook of the internet</strong>.</p>
<hr />
<h3 id="heading-real-life-example-very-simple">📱 Real-Life Example (Very Simple)</h3>
<p>In your mobile phone:</p>
<ul>
<li><p>You save a contact as <strong>“Mom”</strong></p>
</li>
<li><p>But the phone actually dials a <strong>number</strong></p>
</li>
</ul>
<p>Same idea on the internet:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Human-friendly</td><td>Computer-friendly</td></tr>
</thead>
<tbody>
<tr>
<td><a target="_blank" href="http://google.com">google.com</a></td><td>142.250.190.14</td></tr>
</tbody>
</table>
</div><p>👉 <strong>Name Resolution</strong> means:</p>
<blockquote>
<p>Converting a website name into an IP address</p>
</blockquote>
<p>Without DNS:</p>
<ul>
<li>We would have to remember numbers for every website 😵</li>
</ul>
<hr />
<h2 id="heading-why-name-resolution-is-needed">❓ Why Name Resolution Is Needed</h2>
<p>Computers talk using <strong>IP addresses</strong>, not names.</p>
<p>So DNS exists to:</p>
<ul>
<li><p>Make the internet <strong>easy for humans</strong></p>
</li>
<li><p>Convert names → IP addresses</p>
</li>
<li><p>Help browsers find the <strong>correct server</strong></p>
</li>
</ul>
<p>📌 Name resolution is the <strong>heart of DNS</strong>.</p>
<hr />
<h2 id="heading-high-level-dns-resolution-flow">🧭 High-Level DNS Resolution Flow</h2>
<p><img src="https://www.researchgate.net/publication/354591476/figure/fig1/AS%3A1068111553912832%401631669047410/Standard-DNS-resolution-process.png" alt="https://www.researchgate.net/publication/354591476/figure/fig1/AS%3A1068111553912832%401631669047410/Standard-DNS-resolution-process.png" /></p>
<p><img src="https://miro.medium.com/0%2Aw4_IIjmSUdtMp-hT" alt="https://miro.medium.com/0%2Aw4_IIjmSUdtMp-hT" /></p>
<h3 id="heading-simple-flow">Simple Flow:</h3>
<ol>
<li><p>You type a website name</p>
</li>
<li><p>Browser asks DNS</p>
</li>
<li><p>DNS returns an IP address</p>
</li>
<li><p>Browser connects to the server</p>
</li>
<li><p>Website loads 🎉</p>
</li>
</ol>
<hr />
<h2 id="heading-dns-resolution-step-by-step-very-simple">🪜 DNS Resolution Step by Step (Very Simple)</h2>
<p>Let’s understand this using an example:</p>
<h3 id="heading-example">Example:</h3>
<pre><code class="lang-plaintext">www.example.com
</code></pre>
<hr />
<h3 id="heading-step-1-browser-cache-check">🟢 Step 1: Browser Cache Check</h3>
<p>First, your browser checks:</p>
<blockquote>
<p>“Have I visited this website before?”</p>
</blockquote>
<ul>
<li><p>If yes → IP is already saved → website opens fast</p>
</li>
<li><p>If no → move to next step</p>
</li>
</ul>
<hr />
<h3 id="heading-step-2-os-cache-check">🟢 Step 2: OS Cache Check</h3>
<p>Your computer (Operating System) also keeps DNS records.</p>
<ul>
<li><p>If found → done</p>
</li>
<li><p>If not → ask outside</p>
</li>
</ul>
<hr />
<h3 id="heading-step-3-ask-recursive-dns-resolver">🟢 Step 3: Ask Recursive DNS Resolver</h3>
<p>Your internet provider (ISP) has a <strong>DNS resolver</strong>.</p>
<p>This resolver does the hard work for you.</p>
<hr />
<h3 id="heading-step-4-ask-root-dns-server">🟢 Step 4: Ask Root DNS Server</h3>
<p><img src="https://images.openai.com/static-rsc-3/v7iHjuBYNqVRIO8sGA2khay3jxWvJ-wQK_-u_3UTtvcztya5Ve846LVrhaOfj4drOYlXNwySKiKw87vsxVi99mTSoj1OXp8hdBEHhqgasME?purpose=fullsize" alt="https://images.openai.com/static-rsc-3/v7iHjuBYNqVRIO8sGA2khay3jxWvJ-wQK_-u_3UTtvcztya5Ve846LVrhaOfj4drOYlXNwySKiKw87vsxVi99mTSoj1OXp8hdBEHhqgasME?purpose=fullsize" /></p>
<p><img src="https://substackcdn.com/image/fetch/%24s_%21P_Ol%21%2Cf_auto%2Cq_auto%3Agood%2Cfl_progressive%3Asteep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0a1bb2c-a1bc-40ce-abde-6fb9d2a66ce8_1600x570.png" alt="https://substackcdn.com/image/fetch/%24s_%21P_Ol%21%2Cf_auto%2Cq_auto%3Agood%2Cfl_progressive%3Asteep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0a1bb2c-a1bc-40ce-abde-6fb9d2a66ce8_1600x570.png" /></p>
<p>Root server replies:</p>
<blockquote>
<p>“I don’t know the IP, but I know who manages <code>.com</code>”</p>
</blockquote>
<hr />
<h3 id="heading-step-5-ask-tld-server-com">🟢 Step 5: Ask TLD Server (.com)</h3>
<p>TLD server replies:</p>
<blockquote>
<p>“I don’t know the IP, but this server manages <a target="_blank" href="http://example.com"><code>example.com</code></a>”</p>
</blockquote>
<hr />
<h3 id="heading-step-6-ask-authoritative-dns-server">🟢 Step 6: Ask Authoritative DNS Server</h3>
<p>This server knows the <strong>final answer</strong>.</p>
<p>It replies:</p>
<pre><code class="lang-plaintext">example.com → 93.184.216.34
</code></pre>
<hr />
<h3 id="heading-step-7-website-loads">🟢 Step 7: Website Loads</h3>
<ul>
<li><p>IP address is sent back to browser</p>
</li>
<li><p>Browser connects to server</p>
</li>
<li><p>Website appears 🎉</p>
</li>
</ul>
<hr />
<h2 id="heading-simple-dns-resolution-summary">🧠 Simple DNS Resolution Summary</h2>
<p><img src="https://www.researchgate.net/publication/354591476/figure/fig1/AS%3A1068111553912832%401631669047410/Standard-DNS-resolution-process.png" alt="https://www.researchgate.net/publication/354591476/figure/fig1/AS%3A1068111553912832%401631669047410/Standard-DNS-resolution-process.png" /></p>
<p><img src="https://cf-assets.www.cloudflare.com/slt3lc6tev37/54fXQrFHYvhAM7jIIpKEX7/8fb09ba9998d14862e80f5c9cc6d2170/complete-dns-lookup-and-webpage-query.png" alt="https://cf-assets.www.cloudflare.com/slt3lc6tev37/54fXQrFHYvhAM7jIIpKEX7/8fb09ba9998d14862e80f5c9cc6d2170/complete-dns-lookup-and-webpage-query.png" /></p>
<p>Browser → DNS Resolver → Root → TLD → Authoritative → IP → Website</p>
<p>All this happens in <strong>milliseconds</strong> ⚡</p>
<hr />
<h2 id="heading-what-is-the-dig-command">🛠️ What is the <code>dig</code> Command?</h2>
<h3 id="heading-what-does-dig-mean">👉 What does <code>dig</code> mean?</h3>
<p><strong>dig = Domain Information Groper</strong></p>
<p>It is a <strong>command-line tool</strong> used to:</p>
<ul>
<li><p>Ask DNS questions</p>
</li>
<li><p>See DNS resolution details</p>
</li>
<li><p>Debug DNS issues</p>
</li>
</ul>
<hr />
<h2 id="heading-why-do-we-use-dig">❓ Why Do We Use <code>dig</code>?</h2>
<p><code>dig</code> helps developers:</p>
<ul>
<li><p>Check if DNS is working correctly</p>
</li>
<li><p>See which IP a domain resolves to</p>
</li>
<li><p>Understand how DNS resolution happens</p>
</li>
</ul>
<p>📌 It is mainly used for <strong>learning, testing, and debugging</strong>.</p>
<hr />
<h2 id="heading-simple-dig-example">🧪 Simple <code>dig</code> Example</h2>
<h3 id="heading-command">Command:</h3>
<pre><code class="lang-plaintext">dig google.com
</code></pre>
<h3 id="heading-what-it-does">What it does:</h3>
<ul>
<li><p>Asks DNS: <em>“What is the IP of</em> <a target="_blank" href="http://google.com"><em>google.com</em></a><em>?”</em></p>
</li>
<li><p>Shows DNS response in detail</p>
</li>
</ul>
<hr />
<h2 id="heading-important-parts-of-dig-output-beginner-level">🧾 Important Parts of <code>dig</code> Output (Beginner Level)</h2>
<p>You don’t need to understand everything.</p>
<p>Just focus on:</p>
<ul>
<li><p><strong>ANSWER SECTION</strong> → This shows the IP address</p>
</li>
<li><p><strong>Query time</strong> → How fast DNS responded</p>
</li>
</ul>
<p>That’s enough for beginners 👍</p>
<hr />
<h2 id="heading-when-should-you-use-dig">📦 When Should You Use <code>dig</code>?</h2>
<p>Use <code>dig</code> when:</p>
<ul>
<li><p>Website is not opening</p>
</li>
<li><p>DNS changes are not working</p>
</li>
<li><p>You want to learn DNS resolution</p>
</li>
<li><p>You want to check A, MX, TXT records</p>
</li>
</ul>
<hr />
<h2 id="heading-final-thoughts-beginner-friendly">🧠 Final Thoughts (Beginner Friendly)</h2>
<p>If DNS resolution feels confusing right now — <strong>that’s okay</strong>.</p>
<p>Remember:</p>
<ul>
<li><p>DNS converts names → IP addresses</p>
</li>
<li><p>DNS resolution is just <strong>asking the right servers</strong></p>
</li>
<li><p><code>dig</code> is a tool to <strong>see DNS answers</strong></p>
</li>
</ul>
<p>Once you practice a little, DNS will feel <strong>logical and simple</strong> 💙</p>
]]></content:encoded></item></channel></rss>