Huzi Blogs
Blog
Blog
Disclaimer & Data Privacy Policy
Project by huzi.pk

© 2026 blogs.huzi.pk. All Rights Reserved.

    Back to all posts
    Cybersecurity

    Demystifying DNS: The Phonebook of the Internet

    By Huzi

    What is DNS?

    The Domain Name System (DNS) is one of the fundamental building blocks of the internet. Its primary job is to translate human-friendly domain names (like blogs.huzi.pk) into the numerical IP addresses (like 192.0.2.1) that computers use to identify each other on a network. Think of it as the internet's phonebook. It's much easier to remember a name than a long string of numbers.

    Without DNS, we would have to memorize the IP address of every website we want to visit, which is simply not practical.

    How Does a DNS Query Work?

    When you type a domain name into your browser, a complex but incredibly fast process happens in the background. Here's a simplified breakdown of the steps:

    1. Your Browser Checks its Cache: First, your browser checks if it has recently looked up this domain and has the IP address stored in its own cache. If so, it uses it, and the process ends here.

    2. The Recursive DNS Resolver: If the IP is not in the browser cache, your computer sends a query to a Recursive DNS Resolver. This resolver is usually provided by your Internet Service Provider (ISP), but you can also use public ones like Google's (8.8.8.8) or Cloudflare's (1.1.1.1). The resolver's job is to find the correct IP address for the domain you requested.

    3. Querying the Root Servers: The recursive resolver first asks one of the 13 Root DNS Servers that are spread across the globe. The root server doesn't know the IP address for blogs.huzi.pk, but it knows where to find the server that handles the .pk Top-Level Domain (TLD). It directs the resolver to the .pk TLD server.

    4. Querying the TLD Servers: The recursive resolver then asks the .pk TLD Name Server. This server doesn't know the IP for blogs.huzi.pk either, but it knows which name server is authoritative for the huzi.pk domain. It points the resolver to that specific name server.

    5. Querying the Authoritative Name Server: Finally, the recursive resolver queries the Authoritative Name Server for huzi.pk. This is the server that holds the actual DNS records for the domain. It knows the IP address for blogs.huzi.pk and sends it back to the recursive resolver.

    6. Response and Caching: The recursive resolver receives the IP address and sends it back to your browser. It also caches this information for a certain period (defined by the TTL, or Time-to-Live value), so that the next time you ask for blogs.huzi.pk, it can answer immediately without going through all the steps again.

    Common DNS Record Types

    An authoritative name server stores different types of records for a domain. Some of the most common ones are:

    • A Record: Maps a domain name to an IPv4 address. (e.g., blogs.huzi.pk -> 192.0.2.1)
    • AAAA Record: Maps a domain name to an IPv6 address.
    • CNAME Record (Canonical Name): Maps one domain name to another. For example, www.huzi.pk might be a CNAME record pointing to huzi.pk.
    • MX Record (Mail Exchange): Specifies the mail server responsible for accepting email messages on behalf of a domain.
    • TXT Record: Allows an administrator to insert arbitrary text into a DNS record. Often used for email security (SPF, DKIM) and domain verification.

    DNS Security (DNSSEC)

    DNS was not originally designed with security in mind, making it vulnerable to attacks like DNS spoofing or cache poisoning, where an attacker can redirect you to a malicious website. DNSSEC (Domain Name System Security Extensions) helps to mitigate this by adding cryptographic signatures to DNS records, allowing the resolver to verify that the information it received is authentic and has not been tampered with.

    Conclusion

    DNS is a critical, yet often invisible, part of our daily internet usage. It's a distributed, hierarchical, and resilient system that seamlessly connects us to the services we use every day. Understanding how it works is a fundamental piece of knowledge for anyone in networking, web development, or cybersecurity.

    Advertisements


    You Might Also Like

    Elegant Embroidered Lawn 2-Piece Suit | Unstitched Shirt & Plain Trouser for Pakistani Ladies

    Elegant Embroidered Lawn 2-Piece Suit | Unstitched Shirt & Plain Trouser for Pakistani Ladies

    PKR 2900

    4-Stage Knife & Scissor Sharpener – Diamond, Ceramic, Tungsten, Non-Slip Red

    4-Stage Knife & Scissor Sharpener – Diamond, Ceramic, Tungsten, Non-Slip Red

    PKR 1030

    Decent Bottle Green Velvet Suit (9000 Micro) | Embroidered Organza Dupatta

    Decent Bottle Green Velvet Suit (9000 Micro) | Embroidered Organza Dupatta

    PKR 7600

    Unstitched Digital All-Over Print Lawn 3-Piece Suit with Matching Lawn Dupatta

    Unstitched Digital All-Over Print Lawn 3-Piece Suit with Matching Lawn Dupatta

    PKR 3700

    Elegant Embroidered Black Chiffon Party Wear Dress | Unstitched Suit

    Elegant Embroidered Black Chiffon Party Wear Dress | Unstitched Suit

    PKR 5700

    Advertisements


    Related Posts

    Cybersecurity
    Boosting Security and Performance with Cloudflare
    Learn how Cloudflare can dramatically improve your website's security, performance, and reliability. We'll cover its core features like CDN, DDoS protection, and the Web Application Firewall (WAF).

    By Huzi

    Read More
    Cybersecurity
    Cryptography 101: A Beginner's Guide to Digital Security
    From securing your online banking to protecting your messages on WhatsApp, cryptography is the invisible engine of our digital lives. This guide demystifies the core concepts of cryptography, explaining how it works and why it's essential for modern security.

    By Huzi

    Read More
    Cybersecurity
    Essential Cybersecurity Best Practices for Everyone
    In an increasingly digital world, cybersecurity is everyone's responsibility. Learn the essential best practices—from strong passwords and 2FA to recognizing phishing—that can protect you from most common threats.

    By Huzi

    Read More
    Technology
    Top 5 Green Data-Centres in Pakistan & How Solar Power Is Changing Tech Infrastructure
    In Pakistan, as solar panels crowd rooftops and solar farms mirror the horizon, a quieter revolution is happening behind locked steel doors: data centres powered by renewable energy. These centres promise not just computational power, but cleaner, greener infrastructure that matches global sustainability goals.

    By Huzi

    Read More
    Gadgets
    Magnetic Power Banks & Battery Gadgets 2025
    Snap-on juice packs, pocket-size Qi2 wizards and the best magnetic gadgets that cling to your phone like a koala on espresso—reviews, laughs and watts inside.

    By Huzi

    Read More
    Online Earning
    Online Earning Methods with Low Investment for Students in Lahore (2025 Guide) 👑’»âœ¨
    Lahore "" sheher jo sirf culture aur food ka nahi, ab digital hustle ka bhi center ban gaya hai. Har doosra student apni chai aur laptop ke saath online earning ka plan bana raha hota hai.

    By Huzi

    Read More