<?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 - Explaination of Records]]></title><description><![CDATA[DNS - Explaination of Records]]></description><link>https://dns-explaination-of-records.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 20 Jun 2026 08:04:11 GMT</lastBuildDate><atom:link href="https://dns-explaination-of-records.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[DNS resolution- How does it work?]]></title><description><![CDATA[What is DNS?
DNS, or Domain Name System, is the unsung hero powering every website you visit. Think of it as the internet's phonebook, translating memorable names like "google.com" into IP addresses computers actually use, like 142.250.190.78. Withou...]]></description><link>https://dns-explaination-of-records.hashnode.dev/dns-resolution-how-does-it-work</link><guid isPermaLink="true">https://dns-explaination-of-records.hashnode.dev/dns-resolution-how-does-it-work</guid><category><![CDATA[ChaiCode]]></category><category><![CDATA[@Anirudh @priyabhatia @Kshitiz @AK @Siddharth Jai]]></category><category><![CDATA[#piyushgarag]]></category><category><![CDATA[@hiteshchoudharylco]]></category><category><![CDATA[#HiteshChaudhary ]]></category><dc:creator><![CDATA[Swayam Allewar]]></dc:creator><pubDate>Sat, 31 Jan 2026 16:57:30 GMT</pubDate><content:encoded><![CDATA[<h2 id="heading-what-is-dns">What is DNS?</h2>
<p>DNS, or Domain Name System, is the unsung hero powering every website you visit. Think of it as the internet's phonebook, translating memorable names like "<a target="_blank" href="http://google.com">google.com</a>" into IP addresses computers actually use, like 142.250.190.78. Without name resolution, we'd be typing endless number strings—humans prefer words, machines need numbers, so DNS bridges that gap seamlessly.</p>
<p>This detailed guide dives deep into DNS layers using the <code>dig</code> command, a Swiss Army knife for DNS diagnostics. We'll trace queries from root servers to your browser, building a system-design mindset perfect for developers deploying on Vercel or debugging healthcare apps. Expect practical examples, output breakdowns, and real-world ties—aiming for a 9-minute read to solidify your understanding.</p>
<p>When you type <a target="_blank" href="http://google.com"><code>google.com</code></a> into your browser, something remarkable happens in milliseconds: your computer transforms that human-friendly name into an IP address like <code>142.250.185.46</code>. This transformation is handled by the Domain Name System (DNS), often called the internet's phonebook. But unlike a physical phonebook, DNS is a distributed, hierarchical system that queries multiple servers to find the right answer.</p>
<p>In this post, we'll explore DNS from the ground up using <code>dig</code>, a powerful command-line tool that lets us peek behind the curtains of name resolution.</p>
<h2 id="heading-dns-the-internets-distributed-directory">DNS: The Internet's Distributed Directory</h2>
<p>Imagine if every time you wanted to call someone, you had to remember their phone number instead of their name. That's what the internet would be like without DNS. Every website, service, and server on the internet has an IP address (like <code>172.217.14.206</code>), but we humans prefer memorable names like <a target="_blank" href="http://google.com"><code>google.com</code></a> or <a target="_blank" href="http://github.com"><code>github.com</code></a>.</p>
<p>DNS solves this problem, but not by maintaining one giant centralized database. Instead, it uses a hierarchical, distributed system where responsibility is delegated across thousands of servers worldwide. This design provides redundancy, scalability, and allows organizations to manage their own domains independently.</p>
<h2 id="heading-meet-dig-your-dns-diagnostic-tool">Meet <code>dig</code>: Your DNS Diagnostic Tool</h2>
<p>Before diving into DNS architecture, let's introduce our primary tool: <code>dig</code> (Domain Information Groper). While most applications use DNS transparently in the background, <code>dig</code> lets us interact with DNS servers directly and see exactly what's happening during name resolution.</p>
<p>Think of <code>dig</code> as a diagnostic microscope for DNS. It allows us to:</p>
<ul>
<li><p>Query specific DNS servers</p>
</li>
<li><p>Request particular types of DNS records</p>
</li>
<li><p>Trace the resolution path from root to authoritative servers</p>
</li>
<li><p>Debug DNS configuration issues</p>
</li>
<li><p>Understand caching and TTL (Time To Live) values</p>
</li>
</ul>
<p>The basic syntax is simple: <code>dig [domain] [record-type]</code>. But as we'll see, understanding what happens behind this simple command reveals the elegant architecture of the entire internet.</p>
<h2 id="heading-the-dns-hierarchy-root-tld-authoritative">The DNS Hierarchy: Root → TLD → Authoritative</h2>
<p>DNS resolution follows a hierarchical structure with three main levels:</p>
<ol>
<li><p><strong>Root Name Servers</strong>: The top of the DNS hierarchy, knowing where to find TLD servers</p>
</li>
<li><p><strong>TLD (Top-Level Domain) Name Servers</strong>: Responsible for domains like <code>.com</code>, <code>.org</code>, <code>.uk</code></p>
</li>
<li><p><strong>Authoritative Name Servers</strong>: Hold the actual IP addresses for specific domains</p>
</li>
</ol>
<p>Let's explore each layer by using <code>dig</code> to query them directly.</p>
<h2 id="heading-layer-1-root-name-servers-with-dig-ns">Layer 1: Root Name Servers with <code>dig . NS</code></h2>
<p>At the very top of the DNS hierarchy sit the root name servers. There are 13 root server identifiers (labeled A through M), though each identifier actually represents multiple servers distributed globally using anycast routing.</p>
<p>Let's query the root servers:</p>
<pre><code class="lang-bash">dig . NS
</code></pre>
<p>The <code>.</code> (dot) represents the root of the DNS namespace, and <code>NS</code> asks for Name Server records. You'll see output like:</p>
<pre><code class="lang-bash">;; ANSWER SECTION:
.                   86400   IN   NS   a.root-servers.net.
.                   86400   IN   NS   b.root-servers.net.
.                   86400   IN   NS   c.root-servers.net.
...
.                   86400   IN   NS   m.root-servers.net.
</code></pre>
<p><strong>What does this mean?</strong></p>
<p>Each line tells us about a root name server. The <code>86400</code> is the TTL (Time To Live) in seconds—24 hours—indicating how long this information can be cached. The <code>IN</code> stands for "Internet" (a class designation from DNS's early days). <code>NS</code> indicates these are Name Server records.</p>
<p><strong>Why root servers matter:</strong></p>
<p>Root servers don't know the IP address of <a target="_blank" href="http://google.com"><code>google.com</code></a>, but they know who does. When a recursive resolver (like your ISP's DNS server) needs to resolve a domain it hasn't cached, it starts by asking a root server: "Who handles <code>.com</code> domains?" The root server responds with the addresses of the <code>.com</code> TLD servers.</p>
<p>Think of root servers as the reception desk of the internet—they don't have everyone's contact information, but they know which department to send you to.</p>
<h2 id="heading-layer-2-tld-name-servers-with-dig-com-ns">Layer 2: TLD Name Servers with <code>dig com NS</code></h2>
<p>Once we know where the <code>.com</code> TLD servers are, let's query them:</p>
<pre><code class="lang-bash">dig com NS
</code></pre>
<p>This asks: "Who are the authoritative name servers for the <code>.com</code> top-level domain?" The output shows:</p>
<pre><code class="lang-bash">;; ANSWER SECTION:
com.                172800  IN   NS   a.gtld-servers.net.
com.                172800  IN   NS   b.gtld-servers.net.
com.                172800  IN   NS   c.gtld-servers.net.
...
</code></pre>
<p><strong>What's happening here?</strong></p>
<p>The <code>.com</code> TLD is managed by Verisign, which operates these <a target="_blank" href="http://gtld-servers.net"><code>gtld-servers.net</code></a> name servers. Notice the TTL is 172800 seconds (48 hours)—TLD information changes rarely, so it can be cached longer.</p>
<p><strong>The TLD layer's role:</strong></p>
<p>TLD servers are like specialized directories. The <code>.com</code> servers know about every domain registered under <code>.com</code>, the <code>.org</code> servers know about <code>.org</code> domains, and so on. When you ask them about <a target="_blank" href="http://google.com"><code>google.com</code></a>, they don't return the IP address directly. Instead, they tell you which name servers are authoritative for that specific domain.</p>
<p>This delegation model is powerful: Verisign manages the <code>.com</code> infrastructure, but Google manages its own authoritative servers. This separation of concerns allows the system to scale globally.</p>
<h2 id="heading-layer-3-authoritative-name-servers-with-dig-googlecomhttpgooglecom-ns">Layer 3: Authoritative Name Servers with <code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a> <code>NS</code></h2>
<p>Now let's find out who Google has designated as authoritative for their domain:</p>
<pre><code class="lang-bash">dig google.com NS
</code></pre>
<p>The response shows:</p>
<pre><code class="lang-bash">;; ANSWER SECTION:
google.com.         21600   IN   NS   ns1.google.com.
google.com.         21600   IN   NS   ns2.google.com.
google.com.         21600   IN   NS   ns3.google.com.
google.com.         21600   IN   NS   ns4.google.com.
</code></pre>
<p><strong>Understanding authoritative servers:</strong></p>
<p>These are Google's own name servers—the final authority for anything under <a target="_blank" href="http://google.com"><code>google.com</code></a>. When you ask for <a target="_blank" href="http://mail.google.com"><code>mail.google.com</code></a>, <a target="_blank" href="http://drive.google.com"><code>drive.google.com</code></a>, or just <a target="_blank" href="http://google.com"><code>google.com</code></a>, these servers provide the definitive answer.</p>
<p>The TTL here is 21600 seconds (6 hours). This is shorter than TLD records because organizations might need to change their name servers more frequently than TLD infrastructure changes.</p>
<p><strong>Why multiple name servers?</strong></p>
<p>Notice there are four name servers listed. This redundancy is critical:</p>
<ul>
<li><p>If one server fails, others can still respond</p>
</li>
<li><p>Load can be distributed across multiple servers</p>
</li>
<li><p>Geographically distributed servers reduce latency</p>
</li>
</ul>
<p>Most domain registrars require at least two name servers for this reason.</p>
<h2 id="heading-the-full-resolution-diggooglecomhttpgooglecom">The Full Resolution: <code>dig</code><a target="_blank" href="http://google.com"><code>google.com</code></a></h2>
<p>Finally, let's query for the actual IP address:</p>
<pre><code class="lang-bash">dig google.com
</code></pre>
<p>The output includes several sections:</p>
<pre><code class="lang-css"><span class="hljs-selector-tag">QUESTION</span> <span class="hljs-selector-tag">SECTION</span>:
<span class="hljs-selector-tag">google</span><span class="hljs-selector-class">.com</span>.                    <span class="hljs-selector-tag">IN</span>      <span class="hljs-selector-tag">A</span>

 <span class="hljs-selector-tag">ANSWER</span> <span class="hljs-selector-tag">SECTION</span>:
<span class="hljs-selector-tag">google</span><span class="hljs-selector-class">.com</span>.         300     <span class="hljs-selector-tag">IN</span>   <span class="hljs-selector-tag">A</span>    142<span class="hljs-selector-class">.250</span><span class="hljs-selector-class">.185</span><span class="hljs-selector-class">.46</span>

 <span class="hljs-selector-tag">Query</span> <span class="hljs-selector-tag">time</span>: 23 <span class="hljs-selector-tag">msec</span>
 <span class="hljs-selector-tag">SERVER</span>: 8<span class="hljs-selector-class">.8</span><span class="hljs-selector-class">.8</span><span class="hljs-selector-class">.8</span><span class="hljs-selector-id">#53</span>(8<span class="hljs-selector-class">.8</span><span class="hljs-selector-class">.8</span><span class="hljs-selector-class">.8</span>)
</code></pre>
<p><strong>Breaking down the response:</strong></p>
<ul>
<li><p><strong>QUESTION SECTION</strong>: Shows what we asked for—an <code>A</code> record (IPv4 address) for <a target="_blank" href="http://google.com"><code>google.com</code></a></p>
</li>
<li><p><strong>ANSWER SECTION</strong>: The actual IP address, with a TTL of just 300 seconds (5 minutes)</p>
</li>
<li><p><strong>Query time</strong>: How long the query took</p>
</li>
<li><p><strong>SERVER</strong>: Which DNS server we queried (in this case, Google's public DNS at 8.8.8.8)</p>
</li>
</ul>
<p><strong>Why such a short TTL?</strong></p>
<p>Notice the TTL for the actual IP address is only 5 minutes, much shorter than the NS records. This is intentional. Large services like Google use short TTLs because they:</p>
<ul>
<li><p>Load balance across multiple IP addresses</p>
</li>
<li><p>Need flexibility to redirect traffic during outages</p>
</li>
<li><p>Want to update IPs without long propagation delays</p>
</li>
</ul>
<h2 id="heading-behind-the-scenes-the-recursive-resolvers-journey">Behind the Scenes: The Recursive Resolver's Journey</h2>
<p>When your browser needs to resolve <a target="_blank" href="http://google.com"><code>google.com</code></a>, it doesn't perform all these steps itself. Instead, it asks a recursive resolver (typically provided by your ISP or a public DNS service like 8.8.8.8 or 1.1.1.1) to do the heavy lifting.</p>
<p>Here's what the recursive resolver does on your behalf:</p>
<ol>
<li><p><strong>Check cache</strong>: Does it already know the answer? If yes, return it immediately</p>
</li>
<li><p><strong>Query root</strong>: "Where are the <code>.com</code> servers?" → Gets list of TLD servers</p>
</li>
<li><p><strong>Query TLD</strong>: "Where are the authoritative servers for <a target="_blank" href="http://google.com"><code>google.com</code></a>?" → Gets Google's name servers</p>
</li>
<li><p><strong>Query authoritative</strong>: "What's the IP for <a target="_blank" href="http://google.com"><code>google.com</code></a>?" → Gets the actual IP address</p>
</li>
<li><p><strong>Return and cache</strong>: Send the answer back and cache it according to TTL</p>
</li>
</ol>
<p>This entire process typically completes in milliseconds, even though it involves multiple servers potentially distributed across continents.</p>
<p><strong>Caching is crucial:</strong></p>
<p>Without caching, every DNS query would require this multi-step process. Imagine billions of devices querying root servers for every website request! Caching at multiple levels (browser, OS, recursive resolver) keeps the system performant:</p>
<ul>
<li><p>Your browser might cache for the duration of your session</p>
</li>
<li><p>Your OS might cache according to TTL</p>
</li>
<li><p>The recursive resolver caches according to TTL</p>
</li>
<li><p>Even authoritative servers might have internal caches</p>
</li>
</ul>
<h2 id="heading-practical-implications-for-system-design">Practical Implications for System Design</h2>
<p>Understanding DNS resolution has several practical implications:</p>
<p><strong>For developers:</strong></p>
<ul>
<li><p>Set appropriate TTLs based on how frequently you update records (short for dynamic IPs, longer for stable infrastructure)</p>
</li>
<li><p>Use multiple authoritative name servers in different locations</p>
</li>
<li><p>Consider using a DNS provider with global presence to reduce latency</p>
</li>
<li><p>Be aware that DNS changes aren't instant—plan migrations with TTL in mind</p>
</li>
</ul>
<p><strong>For troubleshooting:</strong></p>
<ul>
<li><p>Use <code>dig</code> with <code>+trace</code> to see the full resolution path: <code>dig +trace</code> <a target="_blank" href="http://google.com"><code>google.com</code></a></p>
</li>
<li><p>Query specific servers with <code>@</code>: <code>dig @8.8.8.8</code> <a target="_blank" href="http://google.com"><code>google.com</code></a></p>
</li>
<li><p>Check different record types: <code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a> <code>MX</code> for mail servers, <code>dig</code> <a target="_blank" href="http://google.com"><code>google.com</code></a> <code>AAAA</code> for IPv6</p>
</li>
</ul>
<p><strong>For performance:</strong></p>
<ul>
<li><p>DNS resolution adds latency to every new connection</p>
</li>
<li><p>Services like DNS prefetching can reduce perceived latency</p>
</li>
<li><p>CDN edge servers often have co-located DNS resolvers to minimize lookup time</p>
</li>
</ul>
<h2 id="heading-conclusion-a-system-that-just-works">Conclusion: A System That Just Works</h2>
<p>DNS is one of those fundamental internet technologies that most people never think about—it simply works. But understanding its hierarchical structure and the role of each layer helps us appreciate both its elegance and resilience.</p>
<p>The beauty of DNS lies in its simplicity and delegation:</p>
<ul>
<li><p>Root servers delegate to TLD servers</p>
</li>
<li><p>TLD servers delegate to authoritative servers</p>
</li>
<li><p>Authoritative servers provide the final answer</p>
</li>
<li><p>Caching at every level ensures performance</p>
</li>
</ul>
<p>Next time you type a URL, remember the invisible journey happening in milliseconds: your query traveling through layers of servers, each doing its specific job, collaborating to translate a name into a number so your browser can finally connect.</p>
<p>The <code>dig</code> command gives us a window into this process, transforming DNS from magic into understandable, debuggable infrastructure. Whether you're a developer deploying services, a system administrator troubleshooting connectivity, or simply curious about how the internet works, understanding DNS through tools like <code>dig</code> empowers you to build better systems and solve problems more effectively.</p>
<hr />
<p><strong>Try it yourself:</strong> Open a terminal and run <code>dig +trace</code> <a target="_blank" href="http://example.com"><code>google.com</code></a> to watch the entire resolution process unfold in real-time. You'll see your query travel from root to TLD to authoritative servers, each step of the journey visible and understandable.</p>
]]></content:encoded></item><item><title><![CDATA[How does browser knows where website exists?]]></title><description><![CDATA[A answer to this question is pretty simple and yet complicated at the same time . So long story short it is with the help of DNS. If you have earlier read my blogs you must have understood that I always introduce why what how aspects in my article so...]]></description><link>https://dns-explaination-of-records.hashnode.dev/how-does-browser-knows-where-website-exists</link><guid isPermaLink="true">https://dns-explaination-of-records.hashnode.dev/how-does-browser-knows-where-website-exists</guid><category><![CDATA[ChaiCode]]></category><category><![CDATA[chaicode webdev cohort 2026]]></category><category><![CDATA[#HiteshChaudhary ]]></category><category><![CDATA[@Anirudh @priyabhatia @Kshitiz @AK @Siddharth Jai]]></category><dc:creator><![CDATA[Swayam Allewar]]></dc:creator><pubDate>Sat, 31 Jan 2026 15:38:53 GMT</pubDate><content:encoded><![CDATA[<p>A answer to this question is pretty simple and yet complicated at the same time . So long story short it is with the help of DNS. If you have earlier read my blogs you must have understood that I always introduce why what how aspects in my article so you need not worry just lay back and peacefully read the article.</p>
<p>First things first …</p>
<h1 id="heading-what-is-dns">What is DNS?</h1>
<p>Domain name system server (abbreviated as DNS) in simpler terms is a phonebook of internet that translates human-readable domain names to numerical ip address. Inorder to crack interview this won’t sufficient right? So here we go. . Domain Name System is a hirerachial and distributed naming system that translates human readable domain names to numerical or machine readable ip addresses. DNS helps with the following aspects -</p>
<ul>
<li><p>Eliminates the need to remember ip addresses.</p>
</li>
<li><p>It supports caching and improves retrieval speed.</p>
</li>
<li><p>It uses TLD,authorative DNS server and root server.</p>
</li>
<li><p>Converts human-readable address into (let’s say I am taking geeksforgeeks here for reference ) ip address.</p>
</li>
</ul>
<h2 id="heading-there-are-four-dns-servers-involved-in-loading-a-website">There are four DNS servers involved in loading a website:-</h2>
<ol>
<li><p>DNS Recursor :- Now DNS recursor is more like a librarian who is asked a particular book from library. This is specifically designed to recieve queries from client machines in the form of browsers . Basically it helps in DNS query made by client by creating additional request.</p>
</li>
<li><p>root name server:- Root name server is a destination where human readable host names are translated into IP addresses. It acts like key in a hashmap that helps in retrieving value from the table.</p>
</li>
<li><p>Top level Domain (TLD):- The top level domain server (<a target="_blank" href="https://www.cloudflare.com/learning/dns/top-level-domain/">TLD</a>) <a target="_blank" href="https://www.cloudflare.com/learning/dns/top-level-domain/">ca</a>n be thought of as a specific rack of books in a library. This nameserver is the next step in the search for a specific IP address, and it hosts the last portion of a hostname (In geeksforgeeks.org the TLD server is “org”).</p>
</li>
<li><p><strong>Authoritative nameserver</strong> - This final nameserver can be thought of as a dictionary on a rack of books, in which a specific name can be translated into its definition. The authoritative nameserver is the last stop in the nameserver query. If the authoritative name server has access to the requested record, it will return the IP address for the requested hostname back to the DNS Recursor (the librarian) that made the initial request.</p>
</li>
</ol>
<h2 id="heading-steps-in-dns-lookup">Steps in DNS Lookup</h2>
<h4 id="heading-the-8-steps-in-a-dns-lookup"><strong>The 8 steps in a DNS lookup:</strong></h4>
<ol>
<li><p>A user types ‘example.com’ into a web browser and the query travels into the Internet and is received by a DNS recursive resolver.</p>
</li>
<li><p>The resolver then queries a DNS root nameserver (.).</p>
</li>
<li><p>The root server then responds to the resolver with the address of a Top Level Domain (TLD) DNS server (such as .com or .net), which stores the information for its domains. When searching for example.com, our request is pointed toward the .com TLD.</p>
</li>
<li><p>The resolver then makes a request to the .com TLD.</p>
</li>
<li><p>The TLD server then responds with the IP address of the domain’s nameserver, example.com.</p>
</li>
<li><p>Lastly, the recursive resolver sends a query to the domain’s nameserver.</p>
</li>
<li><p>The IP address for example.com is then returned to the resolver from the nameserver.</p>
</li>
<li><p>The DNS resolver then responds to the web browser with the IP address of the domain requested initially.</p>
</li>
<li><p>Once the 8 steps of the DNS lookup have returned the IP address for example.com, the browser is able to make the request for the web page:</p>
</li>
<li><p>The browser makes a <a target="_blank" href="https://www.cloudflare.com/learning/ddos/glossary/hypertext-transfer-protocol-http/">HTTP</a> request to the IP address.</p>
</li>
<li><p>The server at that IP returns the webpage to be rendered in the browser (step 10).</p>
</li>
</ol>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769869013177/d657eaa1-bc53-478d-aae1-ef3b55c39b76.png" alt class="image--center mx-auto" /></p>
<p>Diagram - DNS Lookup</p>
<h2 id="heading-dns-records">Dns Records</h2>
<ol>
<li><p>A records : A in A record stands for address and this is the most fundamental type in DNS record : it indicates IP address of a given domain. For example, if you pull the DNS records of geekforgeek.org, the A record currently returns an IP address of: 104.17.210.9. A record in most of the cases is the last record from where we can retrieve IP address of host name. A record specifically works for ipv4 address.</p>
</li>
<li><p>AAAA record : AAAA record specifically works for all ipv6 addresses where A record doesn’t comes into picture.</p>
</li>
<li><p>CNAME record : A "canonical name" (CNAME) record points from an alias domain to a "canonical" domain. A CNAME record is used in lieu of an 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. Imagine a scavenger hunt where each clue points to another clue, and the final clue points to the treasure. A domain with a CNAME record is like a clue that can point you to another clue (another domain with a CNAME record) or to the treasure (a domain with an A record).</p>
<p> For example, suppose blog.example.com has a CNAME record with a value of "swayam.geeksforgeeks.org" (without the "swayam"). This means when a DNS server hits the DNS records for blog.example.com, it actually triggers another DNS lookup to example.com, returning example.com’s IP address via its A record. In this case we would say that example.com is the canonical name (or true name) of swayam.geeksforgeeks.org.</p>
</li>
<li><p>MX record: A DNS 'mail exchange' (MX) record directs email to a mail server. The MX record indicates how email messages should be routed in accordance with the Simple Mail Transfer Protocol (SMTP,the standard protocol for all email).</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769876212650/e9c50b3d-57c7-4b14-989e-e086658944b7.png" alt class="image--center mx-auto" /></p>
<p> The 'priority' numbers before the domains for these MX records indicate preference; the lower 'priority' value is preferred. The server will always try mailhost1 first because 10 is lower than 20. In the result of a message send failure, the server will default to mailhost2.</p>
<p> The email service could also configure this MX record so that both servers have equal priority and receive an equal amount of mail:</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1769876320545/413c2904-ec5e-4d64-87ff-d7d2986da770.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>TXT record: The DNS ‘text’ (TXT) record lets a domain administrator enter text into the Domain Name System (DNS). Text is stored in the form of one or more strings within quotation marks. The TXT record was originally intended as a place for human-readable notes. However, now it is also possible to put some machine-readable data into TXT records. One domain can have many TXT records.</p>
</li>
</ol>
<p>Example of a TXT record:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>geekforgeek.org</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><ol start="6">
<li><p>NS record:NS stands for ‘nameserver,’ and the nameserver record indicates which DNS server is authoritative for that domain (i.e. which server contains the actual DNS records). Basically, NS records tell the Internet where to go to find out a domain's IP address. A domain often has multiple NS records which can indicate primary and secondary nameservers for that domain. Without properly configured NS records, users will be unable to load a website or application.</p>
<p> A nameserver is a type of DNS server. It is the server that stores all DNS records for a domain, including A records, MX records, or CNAME records.</p>
<p> Almost all domains rely on multiple nameservers to increase reliability: if one nameserver goes down or is unavailable, DNS queries can go to another one. Typically there is one primary nameserver and several secondary nameservers, which store exact copies of the DNS records in the primary server. Updating the primary nameserver will trigger an update of the secondary nameservers as well.</p>
<p> When multiple nameservers are used (as in most cases), NS records should list more than one server.</p>
</li>
</ol>
]]></content:encoded></item></channel></rss>