A few years ago I noticed my browser was slow. Not “bad Wi-Fi” slow - more like every new tab had this awkward half-second pause before anything loaded. I ran a speed test and my connection was fine. It wasn’t until I dug into DNS resolution times that I found the culprit: my ISP’s DNS server was responding in 200-300ms on every single request. I switched to Cloudflare’s 1.1.1.1 and the sluggishness vanished. That’s when I went down the DNS rabbit hole.
What is DNS (and Why Should You Care)?
DNS - the Domain Name System - is the internet’s phonebook. You type github.com, your browser asks DNS what IP address that maps to, and gets back something like 140.82.121.4. Then it connects. The whole thing happens in milliseconds and you never think about it.
Until something goes wrong.
How DNS Resolution Actually Works
Here’s what happens when you type a URL:
1. You type: https://www.example.com
2. DNS Query: Your computer asks "What's the IP for example.com?"
3. DNS Response: "It's 93.184.216.34"
4. Connection: Your browser connects to that IP address
5. Website loads
The real journey involves multiple servers in a chain:
- Local DNS Cache - Your computer checks if it already knows the IP address
- Recursive Resolver - Your ISP’s DNS server (or custom DNS) receives the query
- Root Nameserver - Directs the resolver to the correct TLD (Top-Level Domain) server
- TLD Nameserver - Points to the authoritative nameserver for the specific domain
- Authoritative Nameserver - Returns the actual IP address
This whole chain typically finishes in 20-100 milliseconds - but that number swings wildly depending on who’s handling your DNS queries.
The Problem with Your ISP’s DNS
By default, your device uses whatever DNS servers your ISP assigns. It works. But it comes with baggage.
Your ISP Can See Everything
Every DNS query your device makes goes through your ISP’s resolver. That means they have a complete log of every website you’ve visited. Some ISPs:
- Log and store this data for months or years
- Sell browsing patterns to third-party advertisers
- Use it for targeted ads right on their own platforms
- Hand it over to government agencies on request
I found this out the hard way when I started seeing ads for things I’d only searched for on my home network. My ISP was DNS-query mining like it was 2005.
ISP DNS Servers Are Often Slow
Your ISP probably didn’t invest much in their DNS infrastructure. Common issues:
- Overloaded resolvers sharing resources across thousands of customers
- Poorly maintained servers with outdated software
- Geographic distance - the resolver might be in a different city or country
- Response times of 100-300ms versus 10-30ms for good custom DNS
DNS Queries Are Unencrypted by Default
Plain DNS sends your queries in cleartext. That means:
- DNS Spoofing - Attackers can redirect you to fake websites
- Man-in-the-Middle Attacks - Third parties can intercept your queries
- DNS Hijacking - Malicious actors can take over your DNS resolution entirely
Custom DNS: The Fix That Takes Five Minutes
Custom DNS services like Cloudflare’s 1.1.1.1, Google’s 8.8.8.8, and Quad9’s 9.9.9.9 give you alternatives to your ISP’s default DNS. I’ve been using 1.1.1.1 for a couple years now and haven’t looked back.
Why 1.1.1.1 Stands Out
Cloudflare launched 1.1.1.1 in 2018 and it quickly became one of the most popular public DNS resolvers. Here’s what sets it apart:
// Traditional ISP DNS vs Custom DNS comparison
const dnsComparison = {
ispDns: {
speed: "100-300ms",
privacy: "Logs and sells data",
security: "No encryption",
reliability: "Variable"
},
cloudflare1111: {
speed: "10-30ms",
privacy: "No logs, no selling",
security: "DNS over HTTPS/TLS",
reliability: "99.99% uptime"
}
};
What You Get by Switching
Privacy That Actually Means Something
Cloudflare’s 1.1.1.1 makes specific commitments:
- No logging of user IP addresses
- No selling of user data to advertisers
- No using query data for targeted advertising
- Regular third-party audits to back it all up
Your browsing history stays yours. That alone made the switch worth it for me.
Faster Browsing
Custom DNS providers run massive global networks with servers all over the world. That translates to:
- Lower latency - Servers are geographically closer to you
- Better infrastructure - Modern: high-performance hardware
- Optimized routing - Intelligent query path selection
- Faster resolution - 1.1.1.1 consistently benchmarks as the fastest public DNS
In practice, pages can load noticeably faster just from cutting DNS resolution time. Not a miracle, but it adds up.
Encrypted DNS Queries
Modern DNS services support encryption protocols:
DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt your DNS queries, preventing:
- Eavesdropping by ISPs
- Manipulation by network administrators
- Surveillance by malicious actors
Threat Protection
Some DNS providers go beyond just resolving names:
- Quad9 (9.9.9.9) - Blocks known malicious domains automatically
- Cloudflare for Families - Filters malware and adult content
- OpenDNS - Phishing protection and content filtering
Reliability You Can Count On
Major DNS providers offer:
- 99.99%+ uptime SLAs
- Global anycast networks - Queries route to the nearest server
- DDoS protection - Resilient against attacks
- Redundant infrastructure - Multiple backup systems
Bypassing ISP Censorship
In some regions, ISPs block or redirect websites through DNS manipulation. Custom DNS can route around these restrictions by using uncensored resolvers.
Choosing a DNS Provider
| Provider | Primary DNS | Secondary DNS | Best For |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Speed & Privacy |
| 8.8.8.8 | 8.8.4.4 | Reliability | |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Security |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Parental Controls |
| AdGuard | 94.140.14.14 | 94.140.15.15 | Ad Blocking |
How to Set Up Custom DNS
On Windows
- Open Control Panel > Network and Sharing Center
- Click your network connection > Properties
- Select Internet Protocol Version 4 (TCP/IPv4)
- Click Properties > Use the following DNS server addresses
- Enter
1.1.1.1and1.0.0.1 - Click OK to save
On macOS
- Open System Preferences > Network
- Select your connection > Advanced
- Go to DNS tab
- Click + and add
1.1.1.1and1.0.0.1 - Click OK > Apply
On Mobile (iOS/Android)
iOS (14+):
- Settings > General > VPN & Device Management > DNS
- Add custom DNS configuration
Android (9+):
- Settings > Network & Internet > Private DNS
- Enter
1dot1dot1dot1.cloudflare-dns.com
On Router (All Devices)
Configure DNS at the router level to protect every device on your network:
- Access router admin panel (usually
192.168.1.1) - Find DNS Settings under WAN or Internet settings
- Replace ISP DNS with custom DNS addresses
- Save and reboot router
This is what I eventually did - it covers everything including smart TVs, game consoles, and all the IoT junk that doesn’t let you change DNS settings directly.
Quick Setup Commands (Linux)
For the command-line crowd:
Set DNS temporarily:
# Edit resolv.conf
sudo nano /etc/resolv.conf
# Add these lines:
nameserver 1.1.1.1
nameserver 1.0.0.1
Verify DNS is working:
# Test DNS resolution speed
nslookup google.com 1.1.1.1
# Check your current DNS
systemd-resolve --status
Is Custom DNS Right for You?
You should switch if:
- You care about online privacy and don’t want your ISP logging everything
- You want faster browsing with lower DNS resolution times
- You need better security against DNS-based attacks
- You’re frustrated with ISP censorship or content restrictions
- You want more reliable DNS that doesn’t go down when your ISP has a bad day
Things to watch out for:
- Some corporate networks block external DNS
- Certain regional content (like local streaming) may require ISP DNS
- Rare compatibility issues with specific services
My Take
I’ve been running 1.1.1.1 on my router for a couple years now. It took maybe five minutes to set up, and it’s one of those “set it and forget it” improvements. The speed difference was noticeable immediately, and the privacy angle gives me peace of mind.
Pro Tip: Combine custom DNS with a reputable VPN for maximum privacy. While DNS handles domain resolution, a VPN encrypts all your internet traffic, providing comprehensive protection against surveillance and tracking.
If you’ve never looked at which DNS server your devices are actually using, it’s worth checking. You might be surprised who’s been logging your browsing history this whole time.
Member discussion
0 commentsStart the conversation
Become a member of >hacksubset_ to start commenting.
Already a member? Sign in