<?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 Types Explained]]></title><description><![CDATA[DNS Record Types Explained]]></description><link>https://dns-recordtypes.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 09:24:37 GMT</lastBuildDate><atom:link href="https://dns-recordtypes.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Understanding DNS Resolution Using dig: From Root to Authoritative Servers]]></title><description><![CDATA[The Domain Name System (DNS) is a foundational component of the internet. Every time a user types a website name into a browser, DNS quietly works in the background to translate that human-readable name into a machine-readable IP address. This articl...]]></description><link>https://dns-recordtypes.hashnode.dev/understanding-dns-resolution-using-dig-from-root-to-authoritative-servers</link><guid isPermaLink="true">https://dns-recordtypes.hashnode.dev/understanding-dns-resolution-using-dig-from-root-to-authoritative-servers</guid><category><![CDATA[Developer]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Hashnode]]></category><category><![CDATA[React]]></category><category><![CDATA[education]]></category><category><![CDATA[Frontend Development]]></category><category><![CDATA[networking]]></category><dc:creator><![CDATA[Jay Ahirrao]]></dc:creator><pubDate>Sat, 31 Jan 2026 12:43:21 GMT</pubDate><content:encoded><![CDATA[<p>The Domain Name System (DNS) is a foundational component of the internet. Every time a user types a website name into a browser, DNS quietly works in the background to translate that human-readable name into a machine-readable IP address. This article explains <strong>why DNS exists</strong>, <strong>how name resolution works hierarchically</strong>, and <strong>how the</strong> <code>dig</code> command exposes each layer of the DNS system—in a practical, system-design-oriented way.DNS : The Internet’s Phonebook</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>Computers communicate using IP addresses (such as <code>142.250.182.14</code>), not domain names. DNS exists to map <strong>domain names → IP addresses</strong>.</p>
<p>However, DNS is <strong>not a single database</strong>. Instead, it is:</p>
<ul>
<li><p>Distributed across thousands of servers</p>
</li>
<li><p>Hierarchical in structure</p>
</li>
<li><p>Highly cached for performance and resilience</p>
</li>
<li><p><img src="https://media.licdn.com/dms/image/v2/D5622AQHbjjFi9jt47g/feedshare-shrink_2048_1536/feedshare-shrink_2048_1536/0/1725800674742?e=2147483647&amp;t=SZAvr2PSVqgM-Pqif8iwlTJnAtBSkCB4b-H48qQKZBA&amp;v=beta" alt="https://media.licdn.com/dms/image/v2/D5622AQHbjjFi9jt47g/feedshare-shrink_2048_1536/feedshare-shrink_2048_1536/0/1725800674742?e=2147483647&amp;t=SZAvr2PSVqgM-Pqif8iwlTJnAtBSkCB4b-H48qQKZBA&amp;v=beta" class="image--center mx-auto" /></p>
</li>
</ul>
<p>This design avoids central bottlenecks and allows the internet to scale to billions of devices and domains.</p>
<h2 id="heading-introducing-dig-inspecting-dns-internals">Introducing <code>dig</code>: Inspecting DNS Internals</h2>
<p><img src="https://upload.wikimedia.org/wikipedia/commons/0/0f/DiG_9.18.1_screenshot.png" alt="https://upload.wikimedia.org/wikipedia/commons/0/0f/DiG_9.18.1_screenshot.png" /></p>
<p><code>dig</code> (Domain Information Groper) is a command-line utility used to:</p>
<ul>
<li><p>Query DNS records directly</p>
</li>
<li><p>Inspect which servers respond at each layer and get theirn addresses</p>
</li>
<li><p>Debug DNS configuration and propagation issues</p>
</li>
<li><p>Understand how resolution actually happens</p>
</li>
</ul>
<p>Unlike browsers or operating systems—which hide DNS behind caching and abstraction—<code>dig</code> shows raw DNS responses.</p>
<h2 id="heading-the-dns-hierarchy-resolution-in-layers">The DNS Hierarchy: Resolution in Layers</h2>
<p><img src="https://www.researchgate.net/publication/330006223/figure/fig1/AS%3A709642057445377%401546203259697/Domain-resolution-process-with-a-recursive-resolver.ppm" alt="https://www.researchgate.net/publication/330006223/figure/fig1/AS%3A709642057445377%401546203259697/Domain-resolution-process-with-a-recursive-resolver.ppm" /></p>
<p>DNS resolution happens through a strict hierarchy:</p>
<p>ff</p>
<p>Root Name Servers</p>
<p>↓</p>
<p>Top-Level Domain (TLD) Servers (.com, .org, .in)</p>
<p>↓</p>
<p>Authoritative Name Servers (e.g., <a target="_blank" href="http://google.com">google.com</a>)</p>
<p>Each layer only knows <strong>where to find the next layer</strong>—never the final answer directly (except the authoritative servers).</p>
<h2 id="heading-querying-the-root-zone-dig-ns">Querying the Root Zone: <code>dig . NS</code></h2>
<p>» <code>dig . NS</code></p>
<p>This command asks:</p>
<blockquote>
<p>“Who are the name servers for the DNS root?”</p>
</blockquote>
<h3 id="heading-what-the-response-shows">What the response shows</h3>
<p>A list of root name servers, such as:</p>
<ul>
<li><p><a target="_blank" href="http://a.root-servers.net"><code>a.root-servers.net</code></a></p>
</li>
<li><p><a target="_blank" href="http://b.root-servers.net"><code>b.root-servers.net</code></a></p>
</li>
<li><p>… ETC</p>
</li>
</ul>
<h3 id="heading-or-can-show-error">Or can show Error</h3>
<ul>
<li><p>Many DNS resolvers (especially ISP, router, or enterprise DNS servers):</p>
<ul>
<li><p><strong>Do not allow direct root (</strong><code>.</code>) queries</p>
</li>
<li><p>Treat them as unnecessary or suspicious</p>
</li>
</ul>
</li>
<li><p>Private / ISP / Router DNS Resolver</p>
<ul>
<li><p>Such resolvers:</p>
<ul>
<li><p>Answer normal domain queries (<a target="_blank" href="http://google.com"><code>google.com</code></a>)</p>
</li>
<li><p><strong>Refuse infrastructure-level queries</strong> like <code>dig . NS</code></p>
</li>
</ul>
</li>
</ul>
</li>
<li><p>Security and Abuse Prevention</p>
<ul>
<li><p>Root-level queries can be used for:</p>
<ul>
<li>DNS amplification attacks, Reconnaissance, Traffic analysis</li>
</ul>
</li>
<li><p>As a result, many resolvers:</p>
<ul>
<li><p>Allow them internally</p>
</li>
<li><p>Block them for clients</p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h3 id="heading-key-characteristics-of-root-servers">Key characteristics of root servers</h3>
<ul>
<li><p>They do <strong>not</strong> store IP addresses for websites .</p>
</li>
<li><p>They only delegate to TLD servers.</p>
</li>
<li><p>They are globally distributed and heavily cached.</p>
</li>
<li><p>DNS governance and coordination is handled by organizations such as ICANN.</p>
</li>
</ul>
<p>Root servers are the starting point for all DNS resolution.</p>
<h2 id="heading-querying-a-tld-dig-com-ns">Querying a TLD: <code>dig com NS</code></h2>
<p>» <code>dig com NS</code></p>
<p>This asks:</p>
<blockquote>
<p>“Which name servers manage the <code>.com</code> domain?”</p>
</blockquote>
<h3 id="heading-what-tld-servers-do">What TLD servers do</h3>
<ul>
<li><p>Maintain delegation information for all <code>.com</code> domains</p>
</li>
<li><p>Point resolvers to the authoritative servers for each registered domain</p>
</li>
<li><p>Do not store A/AAAA records for individual websites</p>
</li>
</ul>
<p>This separation allows millions of domains to exist under a single TLD without overload.</p>
<h2 id="heading-finding-authoritative-servers-dig-googlecomhttpgooglecom-ns">Finding Authoritative Servers: <code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a> <code>NS</code></h2>
<p>» <code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a> <code>NS</code></p>
<p>This query returns the <strong>authoritative name servers</strong> for <a target="_blank" href="http://google.com"><code>google.com</code></a>.</p>
<h3 id="heading-authoritative-servers">Authoritative servers</h3>
<ul>
<li><p>Are controlled by the domain owner (e.g., Google)</p>
</li>
<li><p>Store final DNS records such as:</p>
<ul>
<li><p>A / AAAA (IP addresses)</p>
</li>
<li><p>MX (mail servers)</p>
</li>
<li><p>TXT (verification, security)</p>
</li>
<li><p>CNAME (aliases)</p>
</li>
</ul>
</li>
</ul>
<p>Only authoritative servers can give final, trusted answers for a domain.</p>
<h2 id="heading-full-dns-resolution-dig-googlecomhttpgooglecom">Full DNS Resolution: <code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a></h2>
<p><img src="https://miro.medium.com/1%2A-kCFoSB3-pMwajK6LTJY6Q.jpeg" alt="https://miro.medium.com/1%2A-kCFoSB3-pMwajK6LTJY6Q.jpeg" /></p>
<p>» <code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a></p>
<p>Although this looks like a single query, the recursive resolver performs multiple steps internally:</p>
<ol>
<li><p>Check local and upstream caches</p>
</li>
<li><p>Query a root server for <code>.com</code></p>
</li>
<li><p>Query a <code>.com</code> TLD server for <a target="_blank" href="http://google.com"><code>google.com</code></a></p>
</li>
<li><p>Query Google’s authoritative server</p>
</li>
<li><p>Return the resolved IP address</p>
</li>
</ol>
<p>The client sees only the final answer, but the resolver walks the hierarchy on its behalf.</p>
<h2 id="heading-understanding-ns-records">Understanding NS Records</h2>
<p>NS (Name Server) records answer one critical question:</p>
<blockquote>
<p>“Which servers are authoritative for this zone?”</p>
</blockquote>
<p>They enable:</p>
<ul>
<li><p>Delegation between DNS layers</p>
</li>
<li><p>Domain ownership and registrar changes</p>
</li>
<li><p>Load balancing and redundancy</p>
</li>
<li><p>Failover and disaster recovery</p>
</li>
</ul>
<p>Incorrect NS records can cause complete domain outages—even if all other systems are healthy.</p>
<hr />
<h2 id="heading-how-browsers-use-dns-in-practice">How Browsers Use DNS in Practice</h2>
<p>When a user enters a URL in a browser:</p>
<ol>
<li><p>DNS resolution occurs first</p>
</li>
<li><p>A TCP connection is established</p>
</li>
<li><p>TLS handshake secures the connection</p>
</li>
<li><p>HTTP request/response begins</p>
</li>
</ol>
<p>DNS is therefore <strong>step zero</strong> of every web request.</p>
<hr />
<h2 id="heading-mapping-dig-commands-to-dns-layers">Mapping <code>dig</code> Commands to DNS Layers</h2>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Command</td><td>DNS Layer Observed</td></tr>
</thead>
<tbody>
<tr>
<td><code>dig . NS</code></td><td>Root name servers</td></tr>
<tr>
<td><code>dig com NS</code></td><td>TLD name servers</td></tr>
<tr>
<td><code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a> <code>NS</code></td><td>Authoritative name servers</td></tr>
<tr>
<td><code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a></td><td>Complete resolution flow</td></tr>
</tbody>
</table>
</div><hr />
<h2 id="heading-system-design-perspective">System Design Perspective</h2>
<p>DNS succeeds at internet scale because it is:</p>
<ul>
<li><p>Hierarchical instead of flat</p>
</li>
<li><p>Decentralized instead of centralized</p>
</li>
<li><p>Cached aggressively</p>
</li>
<li><p>Delegated cleanly using NS records</p>
</li>
</ul>
<p>Tools like <code>dig</code> are invaluable for understanding, debugging, and designing reliable internet-facing systems</p>
<ul>
<li><h1 id="heading-the-end">THE END …</h1>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[DNS Record Types Explained]]></title><description><![CDATA[DNS or simply Domain name system is a system for managing all internets domain names and their IP addresses , it is like a phonebook of internet where every device looks for others ip address for their domain name.
How DNS Works :

When you type a we...]]></description><link>https://dns-recordtypes.hashnode.dev/dns-record-types-explained</link><guid isPermaLink="true">https://dns-recordtypes.hashnode.dev/dns-record-types-explained</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Hashnode]]></category><category><![CDATA[React]]></category><category><![CDATA[webdev]]></category><category><![CDATA[ReactHooks]]></category><dc:creator><![CDATA[Jay Ahirrao]]></dc:creator><pubDate>Sat, 31 Jan 2026 06:07:19 GMT</pubDate><content:encoded><![CDATA[<p>DNS or simply Domain name system is a system for managing all internets domain names and their IP addresses , it is like a phonebook of internet where every device looks for others ip address for their domain name.</p>
<h2 id="heading-how-dns-works">How DNS Works :</h2>
<ol>
<li><p>When you type a website name in your browser its called a domain name , but computer dont recognize these domain names , it recognizes numbers and numeric ip address.</p>
</li>
<li><p>Suppose you type google.com on browser, the request is sent from browser to the DNS server, which finds the ip address from its records for that domain name</p>
</li>
<li><p>response is sent back to user and we are connected to google.com to ip address given by dns server eg. 142.250.196.110 .</p>
</li>
</ol>
<h2 id="heading-why-dns-records-are-needed">Why DNS records Are needed:</h2>
<p>DNS Servers maps domain names to specific IP addresses (eg. A records for IPv4 , AAAA for IPv6) so that we dont have to remember long numbers.</p>
<h2 id="heading-what-an-ns-record-is-who-is-responsible-for-a-domain">What an <strong>NS Record</strong> is (who is responsible for a domain):</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769100091054/806f6df3-2434-4e0f-b8e0-03d4750016e2.png" alt class="image--center mx-auto" /></p>
<p>NS is a record in DNS Server that tells which Authoritative server is responsible for that Domain names TLD</p>
<p>it directes queries to the correct place to find other DNS records (like A, MX, CNAME) for that domain</p>
<p>Reocrds (like A, MX, CNAME) for that domain, ensures websites and services load properly.</p>
<p>It points to the DNS servers that manage a domain's records, acting like a pointer to the right "phone book" for that domain's information.</p>
<p>Multiple NS records can be added (primary and secondary)which provide redundancy for reliability and changing them is necessary when switching hosting providers.</p>
<h2 id="heading-example-structure"><strong>Example Structure</strong></h2>
<p><a target="_blank" href="http://example.com"><code>example.com</code></a><code>. NS</code> <a target="_blank" href="http://ns1.exampleserver.com"><code>ns1.exampleserver.com</code></a><code>. (TTL 21600) [1, 3]</code></p>
<p><a target="_blank" href="http://example.com"><code>example.com</code></a><code>.</code>: The domain name.</p>
<p><code>NS</code>: The record type (Name Server).</p>
<p><a target="_blank" href="http://ns1.exampleserver.com"><code>ns1.exampleserver.com</code></a><code>.</code>: The authoritative nameserver.</p>
<p><code>21600</code>: Time to Live (TTL) in seconds, how long caches store the record.</p>
<ol>
<li><h2 id="heading-what-an-a-record-is-domain-ipv4-address">What an <strong>A Record</strong> is (domain → IPv4 address)</h2>
<p> An A Record (Address Record) is a fundamental Domain Name System (DNS) record that maps a human-readable domain name (like <a target="_blank" href="http://www.example.com"><code>www.example.com</code></a>) directly to its corresponding numerical <a target="_blank" href="https://www.google.com/search?q=IPv4+address&amp;sca_esv=591f49c5cb9ac867&amp;sxsrf=ANbL-n4nCCK9Hm-skMhyekAud4gRfoZtMQ%3A1769093635182&amp;ei=AzpyadD1CvSfvr0PhL60kAU&amp;ved=2ahUKEwjs2b_53J-SAxU6afUHHUUWKHAQgK4QegQIARAD&amp;uact=5&amp;oq=What+an+A+Record+is+%28domain+%E2%86%92+IPv4+address%29&amp;gs_lp=Egxnd3Mtd2l6LXNlcnAiLVdoYXQgYW4gQSBSZWNvcmQgaXMgKGRvbWFpbiDihpIgSVB2NCBhZGRyZXNzKTINECMY8AUYJxjJAhjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjINECMY8AUYJxjqAhieBjIHECMYJxjqAjIHECMYJxjqAjIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBAUizqf8BUN6m_wFY3qb_AXACeAGQAQCYAQCgAQCqAQC4AQPIAQD4AQH4AQKYAgKgAheoAhDCAgoQABiwAxjWBBhHwgINEAAYgAQYsAMYQxiKBcICDhAAGLADGOQCGNYE2AEBwgIZEC4YgAQYsAMY0QMYQxjHARjIAxiKBdgBAZgDDvEFXjnZFB1UyFeIBgGQBhG6BgYIARABGAmSBwEyoAcAsgcAuAcAwgcFMi0xLjHIBxCACAA&amp;sclient=gws-wiz-serp"><strong>IPv4 address</strong></a>, <a target="_blank" href="https://www.google.com/search?q=IPv4+address&amp;sca_esv=591f49c5cb9ac867&amp;sxsrf=ANbL-n4nCCK9Hm-skMhyekAud4gRfoZtMQ%3A1769093635182&amp;ei=AzpyadD1CvSfvr0PhL60kAU&amp;ved=2ahUKEwjs2b_53J-SAxU6afUHHUUWKHAQgK4QegQIARAD&amp;uact=5&amp;oq=What+an+A+Record+is+%28domain+%E2%86%92+IPv4+address%29&amp;gs_lp=Egxnd3Mtd2l6LXNlcnAiLVdoYXQgYW4gQSBSZWNvcmQgaXMgKGRvbWFpbiDihpIgSVB2NCBhZGRyZXNzKTINECMY8AUYJxjJAhjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjIHECMYJxjqAjINECMY8AUYJxjqAhieBjIHECMYJxjqAjIHECMYJxjqAjIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBATIWEAAYgAQYQxi0AhjnBhiKBRjqAtgBAUizqf8BUN6m_wFY3qb_AXACeAGQAQCYAQCgAQCqAQC4AQPIAQD4AQH4AQKYAgKgAheoAhDCAgoQABiwAxjWBBhHwgINEAAYgAQYsAMYQxiKBcICDhAAGLADGOQCGNYE2AEBwgIZEC4YgAQYsAMY0QMYQxjHARjIAxiKBdgBAZgDDvEFXjnZFB1UyFeIBgGQBhG6BgYIARABGAmSBwEyoAcAsgcAuAcAwgcFMi0xLjHIBxCACAA&amp;sclient=gws-wiz-serp">acting as t</a>he internet's phonebook to find the server hosting a website or service, allowing your browser to connect to the right computer. The "A" stands for Address, distinguishing it from AAAA records (for IPv6) and other types like MX (mail) or CNAME (alias).</p>
</li>
<li><h2 id="heading-what-an-aaaa-record-is-domain-ipv6-address">What an <strong>AAAA Record</strong> is (domain → IPv6 address)</h2>
<p> An AAAA (Quad-A) record is a type of DNS record that maps a human-readable domain name (like <a target="_blank" href="http://www.example.com"><code>www.example.com</code></a>) to a specific <a target="_blank" href="https://www.google.com/search?q=IPv6+address&amp;sca_esv=591f49c5cb9ac867&amp;sxsrf=ANbL-n6S9W1EUK4w2aqSymemDXUN9OukxQ%3A1769104799947&amp;ei=n2VyaZPJObnnosUPi--I6Qc&amp;ved=2ahUKEwj_0NnR55-SAxUeiK8BHZ3MFTMQgK4QegQIARAB&amp;uact=5&amp;oq=What+an+AAAA+Record+is+%28domain+%E2%86%92+IPv6+address%29%0D%0A%0D%0A&amp;gs_lp=Egxnd3Mtd2l6LXNlcnAiMldoYXQgYW4gQUFBQSBSZWNvcmQgaXMgKGRvbWFpbiDihpIgSVB2NiBhZGRyZXNzKQoKSABQAFgAcAB4AZABAJgBAKABAKoBALgBA8gBAPgBAvgBAZgCAKACAJgDAJIHAKAHALIHALgHAMIHAMgHAIAIAA&amp;sclient=gws-wiz-serp&amp;mstk=AUtExfD7mPiF2wv5QqDF3gJY93Fx03HVjh4P7p5MPjbwkr8VI1ovRtEb_g8TXjkFSzBxYdS9Gtcta7SKb2rLHoctKa3uxg44ZvX-pJJoHawUetCF5xea8hFDGT5UU7CIQSZnts7b45yuAYUEp2SCiiwHO2KhSYIymnvXPFu8n03HVnMsK-U&amp;csui=3"><strong>IPv6 address</strong></a>, <a target="_blank" href="https://www.google.com/search?q=IPv6+address&amp;sca_esv=591f49c5cb9ac867&amp;sxsrf=ANbL-n6S9W1EUK4w2aqSymemDXUN9OukxQ%3A1769104799947&amp;ei=n2VyaZPJObnnosUPi--I6Qc&amp;ved=2ahUKEwj_0NnR55-SAxUeiK8BHZ3MFTMQgK4QegQIARAB&amp;uact=5&amp;oq=What+an+AAAA+Record+is+%28domain+%E2%86%92+IPv6+address%29%0D%0A%0D%0A&amp;gs_lp=Egxnd3Mtd2l6LXNlcnAiMldoYXQgYW4gQUFBQSBSZWNvcmQgaXMgKGRvbWFpbiDihpIgSVB2NiBhZGRyZXNzKQoKSABQAFgAcAB4AZABAJgBAKABAKoBALgBA8gBAPgBAvgBAZgCAKACAJgDAJIHAKAHALIHALgHAMIHAMgHAIAIAA&amp;sclient=gws-wiz-serp&amp;mstk=AUtExfD7mPiF2wv5QqDF3gJY93Fx03HVjh4P7p5MPjbwkr8VI1ovRtEb_g8TXjkFSzBxYdS9Gtcta7SKb2rLHoctKa3uxg44ZvX-pJJoHawUetCF5xea8hFDGT5UU7CIQSZnts7b45yuAYUEp2SCiiwHO2KhSYIymnvXPFu8n03HVnMsK-U&amp;csui=3">serving the</a> same function as an A record but for the newer, longer IPv6 format instead of IPv4. It tells your browser the IPv6 location of a website, enabling communication over the IPv6 internet as adoption grows.</p>
</li>
<li><h2 id="heading-what-a-cname-record-is-one-name-pointing-to-another-name">What a <strong>CNAME Record</strong> is (one name pointing to another name)</h2>
<p> A CNAME (Canonical Name) Record is a <a target="_blank" href="https://www.google.com/search?q=Domain+Name+System&amp;sca_esv=591f49c5cb9ac867&amp;sxsrf=ANbL-n4wemsuP9k8c2pnOcH3k9Sr4LE3GQ%3A1769107669310&amp;ei=1XByabPYErnL1e8PzIvNsAQ&amp;ved=2ahUKEwiovZSK6J-SAxUwk1YBHUMVN0EQgK4QegQIARAD&amp;uact=5&amp;oq=What+a+CNAME+Record+is+%28one+name+pointing+to+another+name%29.&amp;gs_lp=Egxnd3Mtd2l6LXNlcnAiO1doYXQgYSBDTkFNRSBSZWNvcmQgaXMgKG9uZSBuYW1lIHBvaW50aW5nIHRvIGFub3RoZXIgbmFtZSkuMgUQIRigAUj3HVC_A1i2DHABeAGQAQCYAZIDoAG5BKoBBzAuMS40LTG4AQPIAQD4AQH4AQKYAgOgAuoEqAIQwgIHECMYJxjqAsICDRAjGPAFGCcYyQIY6gLCAhcQABiABBiRAhi0AhjnBhiKBRjqAtgBAcICBRAAGO8FwgIIEAAYgAQYogTCAggQABiiBBiJBZgDIPEF2czqkbr1Qe26BgYIARABGAGSBwcxLjEuNC0xoAf5BLIHBzAuMS40LTG4B8oEwgcJMC4xLjEuMC4xyAcigAgA&amp;sclient=gws-wiz-serp&amp;mstk=AUtExfAMYx8SPL1rh175L3-C5dZ1r6QQDJT9jKzD92vqbaVbPjUz2Rl-iaMUHls7w0Bt7-dG6rLvbDnGnqEKnsm_KjQvR-UqEbs7RI5fEI8gSqAhuXlj_DZOSCEXdcev8eMD-9OHYINdxrQXKYSPtlAF6e6n6I7GOaEZ-fg4LglPDAcXDydHhIstzVCwgyiUbNqkxYsibMDVttpZiGdQy9nE9a0ufZm8R97Cjb7TZthpYLZITX5fhH0RnXLnCczyZfXG6v_Iz9opwLDKlI_nKIA-zL1q2_MqzE6NNH80SfFFz3UQvw&amp;csui=3">Domain Name System</a> <a target="_blank" href="https://www.google.com/search?q=Domain+Name+System&amp;sca_esv=591f49c5cb9ac867&amp;sxsrf=ANbL-n4wemsuP9k8c2pnOcH3k9Sr4LE3GQ%3A1769107669310&amp;ei=1XByabPYErnL1e8PzIvNsAQ&amp;ved=2ahUKEwiovZSK6J-SAxUwk1YBHUMVN0EQgK4QegQIARAD&amp;uact=5&amp;oq=What+a+CNAME+Record+is+%28one+name+pointing+to+another+name%29.&amp;gs_lp=Egxnd3Mtd2l6LXNlcnAiO1doYXQgYSBDTkFNRSBSZWNvcmQgaXMgKG9uZSBuYW1lIHBvaW50aW5nIHRvIGFub3RoZXIgbmFtZSkuMgUQIRigAUj3HVC_A1i2DHABeAGQAQCYAZIDoAG5BKoBBzAuMS40LTG4AQPIAQD4AQH4AQKYAgOgAuoEqAIQwgIHECMYJxjqAsICDRAjGPAFGCcYyQIY6gLCAhcQABiABBiRAhi0AhjnBhiKBRjqAtgBAcICBRAAGO8FwgIIEAAYgAQYogTCAggQABiiBBiJBZgDIPEF2czqkbr1Qe26BgYIARABGAGSBwcxLjEuNC0xoAf5BLIHBzAuMS40LTG4B8oEwgcJMC4xLjEuMC4xyAcigAgA&amp;sclient=gws-wiz-serp&amp;mstk=AUtExfAMYx8SPL1rh175L3-C5dZ1r6QQDJT9jKzD92vqbaVbPjUz2Rl-iaMUHls7w0Bt7-dG6rLvbDnGnqEKnsm_KjQvR-UqEbs7RI5fEI8gSqAhuXlj_DZOSCEXdcev8eMD-9OHYINdxrQXKYSPtlAF6e6n6I7GOaEZ-fg4LglPDAcXDydHhIstzVCwgyiUbNqkxYsibMDVttpZiGdQy9nE9a0ufZm8R97Cjb7TZthpYLZITX5fhH0RnXLnCczyZfXG6v_Iz9opwLDKlI_nKIA-zL1q2_MqzE6NNH80SfFFz3UQvw&amp;csui=3">(DNS) record that</a> acts as an <strong>alias</strong>, pointing one domain name (like <a target="_blank" href="http://blog.example.com"><code>blog.example.com</code></a>) to another <em>canonical</em> domain name (like <a target="_blank" href="http://example.com"><code>example.com</code></a>), not directly to an IP address, it says "This name is another name for that name". When someone requests the alias, the DNS resolver follows the CNAME to the target domain, performs another lookup for the target's IP address, and returns it, streamlining management by pointing multiple subdomains to a single service or server.</p>
<p> <strong>WORKING :</strong></p>
<ul>
<li><p><strong>User Request:</strong> A user types <a target="_blank" href="http://blog.example.com"><code>blog.example.com</code></a> into their browser.</p>
</li>
<li><p><strong>DNS Lookup:</strong> The DNS resolver finds the CNAME record for <a target="_blank" href="http://blog.example.com"><code>blog.example.com</code></a>.</p>
</li>
<li><p><strong>Alias Followed:</strong> The CNAME tells the resolver that <a target="_blank" href="http://blog.example.com"><code>blog.example.com</code></a> is an alias for <a target="_blank" href="http://example.com"><code>example.com</code></a> (the canonical name).</p>
</li>
<li><p><strong>Second Lookup:</strong> The resolver then looks up the A (or AAAA) record for <a target="_blank" href="http://example.com"><code>example.com</code></a> to get its IP address.</p>
</li>
<li><p><strong>Connection:</strong> The browser connects to the IP address found for <a target="_blank" href="http://example.com"><code>example.com</code></a></p>
</li>
<li><p><strong>USES :</strong></p>
</li>
<li><p><strong>Subdomains:</strong> you can set up your DNS to direct queries from <a target="_blank" href="http://blogs.jayworks.dev"><code>blogs.jayworks.dev</code></a> (personal domain ) to <a target="_blank" href="http://blogname.hashnode.com"><code>blogname.hashnode.com</code></a> using a <strong>CNAME record</strong>.</p>
</li>
<li><p><strong>Third-Party Services:</strong> Directing subdomains (eg. <a target="_blank" href="http://shop.yourdomain.com"><code>shop.yourdomain.com</code></a>) to platforms like Shopify or GitHub Pages (eg. <a target="_blank" href="http://your-store.myshopify.com"><code>your-store.myshopify.com</code></a>).</p>
</li>
<li><p><strong>CDN Integration:</strong> Routing traffic through a Content Delivery Network (CDN) by pointing a subdomain to the CDN's domain.</p>
</li>
</ul>
</li>
</ol>
<ol start="4">
<li><h2 id="heading-what-an-mx-record-is-how-emails-find-your-mail-server">What an <strong>MX Record</strong> is (how emails find your mail server)</h2>
<p> An <strong>MX record</strong> is a simple map in the Domain Name System (DNS) that tells email servers exactly where to deliver messages for your domain.</p>
<h3 id="heading-how-emails-find-your-mail-server"><strong>How Emails Find Your Mail Server</strong></h3>
<p> When an email is sent, the following process occurs:</p>
<ol>
<li><p><strong>Email Submission</strong>: Your email client (like Outlook or Gmails web interface) sends the email to your email provider's outgoing mail server (a Mail Transfer Agent or MTA).</p>
</li>
<li><p><strong>DNS Query</strong>: The sending MTA performs a DNS query for the recipient's domain name to retrieve its MX records.</p>
</li>
<li><p><strong>MX Record Identification</strong>: The DNS server responds with a list of MX records for that domain. Each record contains a priority value and the <strong>hostname</strong> of a mail server responsible for handling the email.</p>
</li>
<li><p><strong>SMTP Connection</strong>: The sending MTA attempts to connect to the mail server with the <strong>lowest priority number</strong> (highest priority) first.</p>
</li>
<li><p><strong>Email Delivery</strong>: Once a connection is established, the email is transferred via SMTP to the recipient's mail server, where it is placed in the recipient's mailbox to be accessed later by their email client (via IMAP or POP).</p>
</li>
</ol>
</li>
</ol>
<ol start="5">
<li><h2 id="heading-what-a-txt-record-is-extra-information-and-verification">What a <strong>TXT Record</strong> is (extra information and verification)</h2>
<p> A TXT record is a small , customizable note you pin to your domains official record book (DNS).</p>
<p> Its just plain text, but other internet services read these notes to verify that you own the domain or to check your policies.</p>
</li>
</ol>
<p>A single domain name (like <a target="_blank" href="http://example.com"><code>example.com</code></a>) functions much like a single street address for multiple services within a building. Just as a building needs separate suites for a doctor, a lawyer, and an accountant, a single domain uses multiple DNS record types to direct different kinds of network traffic to the correct destination. </p>
<p>Here’s how different records work together under one domain:</p>
<h3 id="heading-the-domains-directory"><strong>The Domain's Directory</strong></h3>
<p>Think of the domain name as the main entrance to a complex. The DNS records are the directory in the lobby, pointing visitors (traffic) to specific suites (servers). </p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769838724755/e008c663-df40-4c7c-87e8-dd1ed50f7049.png" alt class="image--center mx-auto" /></p>
]]></content:encoded></item></channel></rss>