What Is DNS?
DNS stands for Domain Name System. It is one of the foundational building blocks of the internet, often described as the "phonebook of the internet."
Humans access web servers using easy-to-remember domain names like myip.casa or google.com. Computer systems and network routers, however, communicate using numerical IP addresses such as 192.0.2.1 (IPv4) or 2001:db8::1 (IPv6).
The Domain Name System automatically translates human-readable domain names into machine-readable IP addresses so your web browser can connect to the right web server anywhere in the world.
Without DNS, you would have to memorize a string of complex numbers for every single website, email service, or online server you visit.
🌐 Quick Test: Check Your Active IP & DNS
See your current public IP address, ISP, location, and active network details in real time:
Check My IP & Network Info →How Does DNS Work? (Step-by-Step Resolution)
When you type a website address like myip.casa into your browser address bar and press Enter, your device initiates a multi-stage process called DNS resolution. This entire lookup process happens in just a few milliseconds.
Here is what happens behind the scenes during a standard DNS lookup:
- Browser & OS Cache Check: First, your web browser and operating system check their local cache memory to see if they recently resolved the domain. If found, the lookup finishes instantly.
-
Querying the DNS Recursor (Recursive Resolver): If the IP is not in local memory, your device asks a DNS recursive resolver—typically operated by your ISP or a public provider like Cloudflare (
1.1.1.1) or Google (8.8.8.8). -
Contacting Root Nameservers (
.): If the recursive resolver doesn't have the answer in its cache, it queries one of the world's 13 root nameserver clusters. The root server directs the resolver to the appropriate Top-Level Domain (TLD) server based on the domain extension (e.g.,.casa,.com,.org). - Contacting TLD Nameservers: The TLD nameserver reads the extension and directs the resolver to the Authoritative Nameserver responsible for that specific domain.
-
Contacting Authoritative Nameservers: The authoritative nameserver holds the official, definitive DNS records for the domain. It returns the corresponding IP address (e.g.,
104.21.45.12) back to the recursive resolver. - Returning the Result & Caching: The recursive resolver stores the IP address in its cache for future requests and delivers the IP address back to your browser. Your browser then establishes an HTTP/HTTPS connection to the web server.
The 4 Types of DNS Servers Involved in a Lookup
| DNS Server Type | Role & Responsibility |
|---|---|
| DNS Recursor | The middleman resolver that receives client queries and fetches answers from other DNS servers. |
| Root Nameserver | The top tier of the DNS hierarchy. Translates human readable requests into specific TLD server paths. |
| TLD Nameserver | Manages domain extensions like .com, .net, .casa, or country code TLDs like .fr. |
| Authoritative Nameserver | The final destination. Stores the exact DNS resource records (A, AAAA, MX, CNAME) configured by the domain owner. |
Common Types of DNS Records
DNS isn't just for mapping website addresses to web servers. A domain's DNS zone file contains several distinct types of resource records, each serving a specific network function:
- A Record (IPv4 Address): Maps a hostname to an 32-bit IPv4 address (e.g.,
192.0.2.1). - AAAA Record (IPv6 Address): Maps a hostname to a 128-bit IPv6 address (e.g.,
2001:db8::1). - CNAME Record (Canonical Name): Creates an alias from one domain name to another (e.g., mapping
www.myip.casatomyip.casa). - MX Record (Mail Exchange): Specifies the mail servers responsible for receiving email sent to the domain.
- TXT Record (Text Record): Contains machine-readable text used for domain verification, SPF (Sender Policy Framework), DKIM, and DMARC email authentication.
- NS Record (Name Server): Indicates which authoritative name servers manage the DNS records for the domain zone.
- PTR Record (Pointer Record): Used in Reverse DNS Lookups to resolve an IP address back to a domain name.
DNS Lookup vs WHOIS Lookup
It is common to confuse a DNS lookup with a WHOIS lookup, but they fulfill completely different purposes:
- DNS Lookup: Provides technical configuration data—where a domain points, which IP addresses host the website, and where emails are delivered.
- WHOIS Lookup: Provides ownership and registration data—who registered the domain, when it was registered, and which registrar manages it.
To learn more about comparing these two core internet tools, read our detailed comparison: WHOIS vs DNS Lookup: What’s the Difference?.
DNS Caching: Why Lookups Are Fast
Without caching, every single website load would require contacting multiple root, TLD, and authoritative nameservers around the world. DNS caching stores recent query results locally so future requests resolve almost instantaneously.
Caching occurs at multiple levels across the network stack:
- Browser DNS Cache: Modern browsers cache DNS entries for a short time (often 1 to 5 minutes).
- Operating System Cache: OS-level caches (such as `nscd` on Linux, `DNSClient` on Windows, or `mdnsresponder` on macOS) keep queries active until their TTL expires.
- Router & ISP Cache: Your local Wi-Fi router and ISP recursive resolvers maintain massive shared caches for millions of popular queries.
Each DNS record includes a parameter called TTL (Time to Live), which tells resolvers how many seconds to store the record before requesting a fresh copy from the authoritative nameserver.
DNS Security and Privacy Risks
By default, traditional DNS queries are sent over unencrypted UDP/TCP connections on port 53. This creates critical privacy and security vulnerabilities:
1. ISP Tracking & Logging
Because standard DNS requests travel in plain text, your Internet Service Provider (ISP), network administrator, or public Wi-Fi operator can inspect every domain query you make—even when you visit HTTPS encrypted websites.
2. DNS Hijacking & Spoofing (Cache Poisoning)
Attackers can intercept unencrypted DNS traffic or corrupt a resolver's cache with fraudulent IP addresses, redirecting unsuspecting users to phishing websites or malware servers.
3. DNS Leaks via VPNs
When you use a Virtual Private Network (VPN), your internet traffic is encrypted. However, if your device's DNS settings are misconfigured, your DNS requests may still leak outside the encrypted VPN tunnel directly to your ISP.
🧪 Check If Your Device Leaks DNS
If your DNS queries go outside your secure tunnel, your ISP can monitor your online browsing. Run our free diagnostic test to verify your connection security:
Run Free DNS Leak Test →Modern DNS Protocols: DoH, DoT & DNSSEC
To combat privacy exposure and tampering, modern internet standards have introduced encrypted and cryptographically signed DNS protocols:
- DoH (DNS over HTTPS): Encrypts DNS requests inside standard HTTPS web traffic on port 443, making DNS queries blend in with regular encrypted web traffic.
- DoT (DNS over TLS): Encrypts DNS requests using TLS security on dedicated port 853 for system-level privacy.
- DNSSEC (DNS Security Extensions): Adds digital signatures to DNS records so resolvers can verify that the IP address returned has not been altered or spoofed.
🔐 How to Truly Secure Your DNS & Online Privacy
While changing your DNS server to an encrypted resolver (like Cloudflare 1.1.1.1 or Quad9 9.9.9.9) protects your DNS lookups from plain-text eavesdropping, it does not encrypt your actual web traffic payload or hide your real public IP address.
Combining encrypted DNS with a zero-logs VPN ensures both your DNS queries and your entire data path are securely encrypted through an authenticated tunnel, protecting you from ISP tracking and public Wi-Fi spying.
Learn Why and When to Use a VPN →How to Check DNS Records for Any Domain
You can inspect DNS resolution directly from your command line using standard networking utilities:
Windows Command Prompt / PowerShell:
nslookup myip.casa
Linux / macOS Terminal:
dig myip.casa A +short
If you encounter DNS routing issues or suspicious leak results, check out our guide on How to Fix DNS Leaks.
FAQ: What Is DNS?
What does DNS stand for?
DNS stands for Domain Name System. It is the system that translates human-readable domain names into IP addresses.
Why is DNS called the phonebook of the internet?
Just like a phonebook matches a person's name to their telephone number, DNS matches a website domain name (like myip.casa) to its server IP address.
What is a public DNS server?
A public DNS server is a free recursive resolver open to anyone on the internet, such as Cloudflare (1.1.1.1), Google (8.8.8.8), or Quad9 (9.9.9.9), often offering faster resolution or enhanced malware blocking compared to default ISP servers.
Can my ISP see what websites I visit using DNS?
Yes. If you use standard, unencrypted DNS provided by your ISP, your ISP receives every DNS request you send, building a detailed log of domain visits.
Does changing my DNS server change my IP address?
No. Changing your DNS server alters who resolves domain names for your device, but it does not mask your public IP address. To hide or change your public IP address, you need to use a VPN.
Final Takeaway
The Domain Name System (DNS) is an indispensable system that makes browsing the internet seamless and human-friendly. Understanding how DNS lookups work, how records are structured, and how encrypted DNS protects your browsing gives you better control over your digital footprint.
Regularly auditing your network for DNS leaks and maintaining clean DNS configurations ensures your online privacy remains protected.
🧪 Run DNS Leak Test → 🌍 Check My IP Location → 🛡️ Learn Why Use a VPN →