🧠 DNS (Domain Name System)
🧠 DNS (Domain Name System)
Top 5 Key Points
-
Converts Domain Names to IP Addresses:
DNS translates human-readable domain names (likewww.google.com) into machine-readable IP addresses (like142.250.190.4). -
Simplifies Networking:
Users remember domain names instead of IPs — making internet navigation easier. -
Uses UDP Port 53:
DNS queries and responses use UDP port 53 (sometimes TCP for large zone transfers). -
Hierarchical Structure:
DNS is a distributed system with Root, Top-Level Domains (TLD) (like.com,.org), and Authoritative Servers. -
Can Be Local or Public:
In enterprise networks, DNS servers are often local to resolve internal names; otherwise, public DNS (like Google’s8.8.8.8) is used.
⚙️ Technical Summary
| Feature | Description |
|---|---|
| OSI Layer | Application Layer |
| Transport Protocol | UDP/TCP Port 53 |
| Main Function | Name-to-IP Resolution |
| Server Role | Responds to DNS queries |
| Client Role | Sends name resolution requests |
🧰 Packet Tracer Lab – DNS Server Configuration
🎯 Goal:
Set up a DNS Server that resolves a website name (www.company.com) to its IP address and allows PCs to browse it.
🖥️ Network Topology
IP Plan
| Device | Interface | IP Address | Role |
|---|---|---|---|
| Server0 | NIC | 192.168.10.2 | DNS + Web Server |
| PC1 | NIC | DHCP or Static 192.168.10.10 | DNS Client |
| Gateway (optional) | Router (192.168.10.1) | Default Gateway |
🪜 Step-by-Step Configuration
🔹 1. Configure Server IP
On Server0:
-
Go to Desktop → IP Configuration
-
Set:
🔹 2. Enable DNS Service
On Server0:
-
Click Services → DNS
-
Turn DNS Service: ON
-
Under Resource Records, add:
✅ This maps the domain name to the web server’s IP address.
🔹 3. Enable HTTP Service
-
Go to Services → HTTP
-
Turn HTTP Service: ON
-
(Optional) Edit the HTML page to display a message like:
🔹 4. Configure PC1 (Client)
On PC1:
-
Go to Desktop → IP Configuration
-
Set:
🔹 5. Test DNS Resolution
On PC1 → Desktop → Web Browser
-
Type:
www.company.com
✅ If configured correctly, the browser loads the web page from Server0.
💡 Packet Tracer will show the HTTP connection to 192.168.10.2 — proving DNS resolution works.
🧠 Learning Summary
| Concept | Description |
|---|---|
| DNS Role | Resolves domain names to IPs |
| Protocol | UDP/TCP Port 53 |
| Record Type | A Record (name-to-IP mapping) |
| Server Setup | Enable DNS service and add entries |
| Client Setup | Set correct DNS server IP |
💬 Teaching Tip
“DNS is like your phone’s contact list — you don’t remember everyone’s number (IP), just their names. The list (DNS) does the translation for you.”
Ethical Hacking Classes in Pune
ReplyDeleteEthical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune