How to Set Up Google Public DNS for Enhanced Internet Performance
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)
What Are Google Public DNS Servers?
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.
Method 1: Configure Google DNS on Linux
Ubuntu / Debian (with netplan or NetworkManager)
For systems using Netplan (/etc/netplan/*.yaml):
Edit the config:
Add or update the DNS section:
Apply changes:
Using resolv.conf (older systems):
Then add:
CentOS / RHEL
Edit your connection file:
Add or update:
Restart networking:
Method 2: Configure Google DNS on Windows 10/11
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.
Method 3: Configure Google DNS on macOS
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.
Method 4: Configure DNS at the Router Level (Network-Wide)
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.
Test Your Configuration
Use one of the following commands:
You should see:
Or visit:
🔍 https://1.1.1.1/help to check current DNS
Security & Privacy Notes
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.


