DNS Explained: How Your Browser Finds Websites
Published April 8, 2026
When you type Facebook.com into your browser, your computer doesn't magically know where Facebook's servers are located. It needs help finding the right address, just like you need GPS to find a new restaurant. That's where DNS comes in.
DNS stands for Domain Name System. Think of it as the internet's phone book. Instead of remembering that Facebook's server is at 157.240.11.35, you just type Facebook.com. DNS translates that friendly name into the actual server address your computer needs.
How DNS Works Step by Step
Here's what happens when you visit a website:
- You type "google.com" in your browser
- Your computer asks your router "Where is google.com?"
- Your router asks your internet provider's DNS server
- The DNS server looks up google.com and finds the IP address
- Your router gets the answer and tells your computer
- Your browser connects to Google's server using that IP address
This whole process takes milliseconds. But if DNS isn't working properly, websites won't load at all.
Common DNS Problems You'll Face
DNS issues show up in several ways. Your browser might say "This site can't be reached" or "DNS probe finished no internet." Sometimes only certain websites won't load while others work fine.
The most common problems are:
- Your router is using slow DNS servers
- DNS cache is corrupted on your device
- Your internet provider's DNS servers are down
- Router's DNS settings got changed accidentally
If you can access websites by typing their IP address directly but not their domain name, it's definitely a DNS problem. Try typing 8.8.8.8 in your browser. If Google loads, your DNS is broken.
Checking Your Current DNS Settings
First, let's see what DNS servers you're currently using. On Windows, open Command Prompt and type:
nslookup google.com
You'll see something like "Server: 192.168.1.1" which is your router, and then the actual DNS server your router is using.
On your phone, go to Settings → Wi-Fi → tap your network name → Advanced. Look for DNS settings to see what your device is using.
Changing DNS Settings on Your Router
The best place to change DNS is on your router, so all devices on your network use better servers automatically.
Netgear Routers
- Open your browser and go to 192.168.1.1
- Log in with your admin username and password
- Click "Advanced" → "Setup" → "Internet Setup"
- Look for "DNS Servers" or "Domain Name Server"
- Change from "Get Dynamically" to "Use These DNS Servers"
- Enter 8.8.8.8 as primary and 8.8.4.4 as secondary
- Click "Apply" and restart your router
TP-Link Routers
- Go to 192.168.0.1 in your browser
- Log in with your credentials
- Click "Advanced" → "Network" → "Internet"
- Find "Primary DNS" and "Secondary DNS"
- Enter 1.1.1.1 and 1.0.0.1 for Cloudflare DNS
- Save the settings and reboot
Asus Routers
- Access your router at 192.168.1.1
- Go to "Adaptive QoS" → "WAN"
- Set "Connect to DNS Server automatically" to "No"
- Enter your preferred DNS servers
- Apply settings
If you can't access your router's settings, check our router login guide for help.
Best DNS Servers to Use
Your internet provider's DNS servers might be slow or unreliable. Here are better alternatives:
Google DNS
- Primary: 8.8.8.8
- Secondary: 8.8.4.4
- Fast and reliable worldwide
- Good for general use
Cloudflare DNS
- Primary: 1.1.1.1
- Secondary: 1.0.0.1
- Fastest response times
- Privacy-focused
OpenDNS
- Primary: 208.67.222.222
- Secondary: 208.67.220.220
- Blocks malware and phishing sites
- Family-friendly filtering options
Test different DNS servers to see which works best in your area. In the Philippines, many users find Google DNS most reliable. In India, Cloudflare often performs better.
Fixing DNS Problems on Individual Devices
Sometimes you need to fix DNS on just one computer or phone without changing router settings.
Windows 10/11
- Right-click the network icon in your taskbar
- Select "Open Network & Internet settings"
- Click "Change adapter options"
- Right-click your Wi-Fi connection
- Choose "Properties"
- Select "Internet Protocol Version 4 (TCP/IPv4)"
- Click "Properties"
- Choose "Use the following DNS server addresses"
- Enter 8.8.8.8 and 8.8.4.4
- Click OK
iPhone/iPad
- Go to Settings → Wi-Fi
- Tap the (i) next to your network name
- Tap "Configure DNS"
- Select "Manual"
- Remove existing servers
- Add 1.1.1.1 and 1.0.0.1
- Save settings
Android
- Go to Settings → Wi-Fi
- Long-press your network name
- Select "Modify network"
- Tap "Advanced options"
- Change IP settings to "Static"
- Enter DNS 1: 8.8.8.8 and DNS 2: 8.8.4.4
- Save changes
Clearing DNS Cache
Sometimes your computer remembers old DNS information. Clear the cache to fix loading problems:
On Windows, open Command Prompt as administrator and type:
ipconfig /flushdns
On Mac, open Terminal and enter:
sudo dscacheutil -flushcache
Restart your browser after clearing the cache.
Testing if DNS Changes Worked
After changing DNS settings, test if everything works:
- Restart your router and wait 2 minutes
- Open Command Prompt and type:
nslookup facebook.com - Check if the response comes from your new DNS server
- Visit a website you couldn't access before
- Use an online DNS speed test to compare performance
If websites still won't load, try a different DNS server or check if your internet connection has other issues.
When DNS Isn't the Problem
Not all website loading problems are DNS-related. If you can visit some sites but not others, and DNS changes don't help, you might have:
- Firewall blocking certain websites
- Parental controls enabled on your router
- Internet provider blocking specific sites
- Malware on your computer
Check your router's access restrictions and scan for viruses if DNS changes don't solve the problem.
Summary
DNS translates website names into IP addresses so your browser can find servers. When DNS breaks, websites won't load even if your internet connection works fine. Change your router's DNS settings to use faster, more reliable servers like Google DNS (8.8.8.8) or Cloudflare DNS (1.1.1.1). Clear your device's DNS cache if problems persist. Most DNS issues get fixed quickly once you know what to change.
Related Articles
A deep dive into how IP addresses work and the differences between IPv4 and IPv6.
Learn how the Domain Name System translates website names into IP addresses.
WPA3 is the latest and most secure WiFi encryption standard. Here is how to enable it on your router.
Simple explanation of IPv4 vs IPv6 differences. Learn which one your router uses and how to enable IPv6 on Netgear, TP-Link, and other routers.
More from Other Topics
Router Guides
Popular Router Resources
- Default Router Passwords
- Router Brands
- Default IP Addresses
- What Is My IP?
- WiFi QR Code Generator
- Internet Speed Test
- Port Checker
- All Network Tools