Google Public DNS boosts your internet experience by offering faster, more secure, and reliable domain name resolution. The Domain Name System (DNS) converts user-friendly names (like google.com) into IP addresses. Switching to Google’s public DNS servers (8.8.8.8 and 8.8.4.4) from your ISP’s default provides quicker lookups, improved security, and greater uptime.
This guide simplifies configuring Google DNS across multiple platforms, including:
Linux (Ubuntu, CentOS)
Windows (10/11)
macOS
Routers (for network-wide DNS updates)
Primary DNS: 8.8.8.8
Secondary DNS: 8.8.4.4
These DNS servers are globally distributed, secure, and maintained by Google with privacy and performance optimizations.
Edit the config:
Add or update the DNS section:
Apply changes:
Then add:
Edit your connection file:
Add or update:
Restart networking:
Press Windows + R, type ncpa.cpl, press Enter.
Right-click your active network connection → Properties.
Select Internet Protocol Version 4 (TCP/IPv4) → click Properties.
Check “Use the following DNS server addresses”.
Enter:
Preferred: 8.8.8.8
Alternate: 8.8.4.4
Click OK, then Close.
🧠 Optional: Repeat for IPv6 with 2001:4860:4860::8888 and 2001:4860:4860::8844.
Go to System Settings → Network.
Select your connection (Wi-Fi or Ethernet) → Details.
Click DNS.
Remove existing servers and add:
8.8.8.8
8.8.4.4
Click OK and Apply.
Access your router’s admin page (usually 192.168.1.1 or 192.168.0.1).
Log in with admin credentials.
Navigate to Network → LAN/DHCP or Internet settings.
Find DNS Settings.
Set:
Primary DNS: 8.8.8.8
Secondary DNS: 8.8.4.4
Save and reboot router if required.
🔒 Bonus: This ensures all devices on your network benefit from Google DNS — smart TVs, IoT devices, etc.
Use one of the following commands:
You should see:
Or visit:
🔍 https://1.1.1.1/help to check current DNS
Google DNS supports DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT) for encrypted queries.
You can use clients like dnscrypt-proxy or switch to Google DoH endpoints for privacy-focused configurations.