<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: HETVI UNDHAD</title>
    <description>The latest articles on DEV Community by HETVI UNDHAD (@hetvi_undhad_aa27517e647d).</description>
    <link>https://dev.to/hetvi_undhad_aa27517e647d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3525760%2F85f368e6-1544-4074-bdbd-11ac4eea32f2.png</url>
      <title>DEV Community: HETVI UNDHAD</title>
      <link>https://dev.to/hetvi_undhad_aa27517e647d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hetvi_undhad_aa27517e647d"/>
    <language>en</language>
    <item>
      <title>DNS</title>
      <dc:creator>HETVI UNDHAD</dc:creator>
      <pubDate>Tue, 30 Sep 2025 15:48:35 +0000</pubDate>
      <link>https://dev.to/hetvi_undhad_aa27517e647d/understanding-dns-domain-name-system-the-internets-phonebook-hc</link>
      <guid>https://dev.to/hetvi_undhad_aa27517e647d/understanding-dns-domain-name-system-the-internets-phonebook-hc</guid>
      <description>

&lt;p&gt;🌐 Understanding DNS (Domain Name System): The Internet’s Phonebook&lt;br&gt;
The Domain Name System (DNS) is one of the most crucial components of the internet. Without it, browsing the web would be much harder. Instead of typing &lt;a href="http://www.example.com" rel="noopener noreferrer"&gt;www.example.com&lt;/a&gt;, we’d be stuck memorizing long strings of numbers like 192.168.1.2.&lt;br&gt;
In this blog, we’ll dive into what DNS is, how it works, its message structure, record types, and even simulate DNS queries using Cisco Packet Tracer.&lt;/p&gt;



&lt;p&gt;🔎 1. What is DNS?&lt;br&gt;
DNS stands for Domain Name System. Its primary purpose is to translate human-readable domain names into machine-readable IP addresses.&lt;br&gt;
Think of it as the phonebook of the internet — instead of remembering phone numbers, you just look up a name. Similarly, DNS allows you to type a website’s name instead of its IP address.&lt;/p&gt;

&lt;p&gt;✨ Key Features of DNS&lt;br&gt;
• Human-friendly domain names&lt;br&gt;
• Fast and efficient IP resolution&lt;br&gt;
• Distributed database system (not centralized)&lt;br&gt;
• Scalable and fault-tolerant&lt;/p&gt;



&lt;p&gt;🖥 2. DNS Services and Records&lt;br&gt;
DNS is made up of different types of servers and uses various record types to function properly.&lt;br&gt;
DNS Server Types&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Authoritative DNS Server – Stores and serves the actual records of a domain.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Recursive Resolver – Accepts client queries and finds the answer by asking other DNS servers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Caching DNS Server – Saves recently resolved queries in memory to make future lookups faster.&lt;br&gt;
Common DNS Record Types&lt;br&gt;
• A Record → Maps a domain name to an IPv4 address&lt;br&gt;
• AAAA Record → Maps a domain name to an IPv6 address&lt;br&gt;
• CNAME Record → Alias of one domain to another (e.g., blog.example.com → &lt;a href="http://www.example.com" rel="noopener noreferrer"&gt;www.example.com&lt;/a&gt;)&lt;br&gt;
• MX Record → Identifies mail servers for a domain&lt;br&gt;
• NS Record → Specifies the authoritative name servers for a domain&lt;br&gt;
• PTR Record → Used for reverse DNS lookup (IP → domain)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;📡 3. DNS Protocol Basics&lt;br&gt;
DNS runs on the Application Layer of the OSI model and uses both UDP and TCP depending on the situation.&lt;br&gt;
• Port: 53&lt;br&gt;
• Transport Protocol:&lt;br&gt;
o   UDP (default, faster, used for most queries)&lt;br&gt;
o   TCP (used for zone transfers or responses larger than 512 bytes)&lt;br&gt;
Query Types&lt;br&gt;
• Recursive Query → Client asks DNS to fully resolve the name&lt;br&gt;
• Iterative Query → DNS server responds with the best answer it has or refers to another server&lt;br&gt;
TTL (Time To Live)&lt;br&gt;
Defines how long a record stays in cache before it needs to be refreshed.&lt;/p&gt;



&lt;p&gt;📑 4. DNS Message Format (Header Fields)&lt;br&gt;
A DNS message contains both queries and responses, structured into specific fields:&lt;br&gt;
• Transaction ID – Unique identifier for matching queries &amp;amp; responses&lt;br&gt;
• Flags – Includes query/response type, authoritative answer flag, recursion, etc.&lt;br&gt;
• Questions – Number of queries sent&lt;br&gt;
• Answers – Number of answers returned&lt;br&gt;
• Authority – Reference to authoritative servers&lt;br&gt;
• Additional Info – Extra helpful records&lt;br&gt;
📖 Learn more from IETF RFC 1035&lt;/p&gt;



&lt;p&gt;🛠️ 5. Practical Demonstration in Cisco Packet Tracer&lt;br&gt;
One of the best ways to understand DNS in action is to simulate it in Cisco Packet Tracer:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create a network topology with a DNS server, client PC, and a router.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Configure the DNS server with an A record for a domain (e.g., &lt;a href="http://www.mywebsite.com" rel="noopener noreferrer"&gt;www.mywebsite.com&lt;/a&gt; → 192.168.1.10).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On the client PC, configure the DNS server IP in the network settings.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ping or open the domain name in the browser → it will resolve to the correct IP address.&lt;br&gt;
👉 Cisco Packet Tracer Download (Official)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;📚 References &amp;amp; Further Reading&lt;br&gt;
• How DNS Works – Cloudflare&lt;br&gt;
• IETF RFC 1035 – DNS Specifications&lt;br&gt;
• DNS in Depth – ICANN&lt;/p&gt;



&lt;p&gt;🛠5. DNS Configuration in Cisco Packet Tracer&lt;br&gt;
You can easily simulate DNS in Cisco Packet Tracer by following these steps:&lt;/p&gt;



&lt;p&gt;Step 1: Place Devices&lt;br&gt;
• PC1 → Client&lt;br&gt;
• PC2 → DNS Server&lt;br&gt;
• Switch → Connect both PCs&lt;/p&gt;



&lt;p&gt;Step 2: Configure IP Addresses&lt;br&gt;
Assign static IPs to all devices within the same subnet.&lt;br&gt;
Example configuration:&lt;br&gt;
• PC1 (Client): 192.168.1.10&lt;br&gt;
• PC2 (DNS Server): 192.168.1.2&lt;/p&gt;



&lt;p&gt;Step 3: Configure DNS Server&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Select PC2 (DNS Server) → Services Tab → DNS&lt;/li&gt;
&lt;li&gt; Add DNS entries:
o   &lt;a href="http://www.example.com" rel="noopener noreferrer"&gt;www.example.com&lt;/a&gt; → 192.168.1.2
o   &lt;a href="http://www.test.com" rel="noopener noreferrer"&gt;www.test.com&lt;/a&gt; → 192.168.1.3
________________________________________
Step 4: Configure Client&lt;/li&gt;
&lt;li&gt; Go to PC1 → Desktop Tab → IP Configuration&lt;/li&gt;
&lt;li&gt; Set the DNS Server IP to 192.168.1.2
________________________________________
Step 5: Test DNS Resolution&lt;/li&gt;
&lt;li&gt; Open Command Prompt on PC1&lt;/li&gt;
&lt;li&gt; Run the command:
ping &lt;a href="http://www.example.com" rel="noopener noreferrer"&gt;www.example.com&lt;/a&gt;
✅ Result: The domain &lt;a href="http://www.example.com" rel="noopener noreferrer"&gt;www.example.com&lt;/a&gt; resolves to 192.168.1.2
________________________________________
This simple simulation demonstrates how DNS translates domain names into IP addresses within a local network environment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;** FOR BETTER UNDERSTANDING REFER THIS**&lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://player.vimeo.com/video/1123256056" width="710" height="399"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;br&gt;
The Domain Name System (DNS) is truly the backbone of the internet. From simple browsing to sending emails, DNS makes everything possible by seamlessly translating domain names into IP addresses.&lt;br&gt;
Next time you type a URL in your browser, remember — there’s a whole system working behind the scenes to get you where you want to go!&lt;/p&gt;

&lt;p&gt;Prepared by hetvi undhad (24CE131),siya thakkar (24CE125).&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>networking</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>🌐 Understanding DNS (Domain Name System): The Internet’s Phonebook</title>
      <dc:creator>HETVI UNDHAD</dc:creator>
      <pubDate>Tue, 30 Sep 2025 15:43:42 +0000</pubDate>
      <link>https://dev.to/hetvi_undhad_aa27517e647d/understanding-dns-domain-name-system-the-internets-phonebook-357o</link>
      <guid>https://dev.to/hetvi_undhad_aa27517e647d/understanding-dns-domain-name-system-the-internets-phonebook-357o</guid>
      <description></description>
      <category>networking</category>
      <category>beginners</category>
      <category>architecture</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
