How to Configure Network Settings to Use Google Public DNS
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:
sudo nano /etc/netplan/01-netcfg.yamlAdd or update the DNS section:
network:
version: 2
ethernets:
eth0:
dhcp4: no
addresses: [192.168.1.10/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]Apply changes:
sudo netplan applyUsing resolv.conf (older systems):
sudo nano /etc/resolv.confThen add:
nameserver 8.8.8.8
nameserver 8.8.4.4Ā CentOS / RHEL
Edit your connection file:


