Overview
Google Public DNS is a free Domain Name System (DNS) service offered by Google to make internet browsing faster and more secure. Switching your device’s DNS to Google’s servers can:
-
Improve speed and reliability
-
Fix issues with websites not loading
-
Provide more consistent access across networks
This guide explains how to configure Google DNS on Windows, macOS, and Linux.
Google DNS Addresses
-
IPv4
-
Preferred DNS:
8.8.8.8 -
Alternate DNS:
8.8.4.4
-
-
IPv6 (optional)
-
Preferred DNS:
2001:4860:4860::8888 -
Alternate DNS:
2001:4860:4860::8844
-
Windows 10 / 11
-
Right-click the network/Wi-Fi icon in the taskbar → Open Network & Internet Settings.
-
Select Change adapter options.
-
Right-click your active connection → Properties.
-
Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
-
Choose Use the following DNS server addresses:
-
Preferred DNS:
8.8.8.8 -
Alternate DNS:
8.8.4.4
-
-
(Optional) Repeat for IPv6 with the above IPv6 addresses.
-
Click OK, then reconnect to your network.
macOS (Ventura, Monterey, Big Sur, older)
-
Open System Settings (or System Preferences on older versions).
-
Go to Network.
-
Select your active connection (Wi-Fi or Ethernet) → Details/Advanced.
-
Go to the DNS tab.
-
Remove any existing entries, then add:
-
8.8.8.8 -
8.8.4.4
(Optional: add IPv6 addresses)
-
-
Click OK, then Apply.
Linux (Ubuntu/Debian – Network Manager GUI)
-
Click the network icon → Settings.
-
Choose your active connection → Settings.
-
Under IPv4 (and IPv6 if needed), set DNS to:
-
8.8.8.8, 8.8.4.4
(IPv6:2001:4860:4860::8888, 2001:4860:4860::8844)
-
-
Save and reconnect.
Linux (Command Line – resolv.conf)
-
Open a terminal and edit resolv.conf:
-
Add:
-
Save and exit (
CTRL+O,CTRL+X). -
Restart networking:
(Note: Some distros overwrite resolv.conf on reboot. Use NetworkManager or systemd-resolved for persistent changes.)
Verify the Setup
To confirm you’re using Google DNS:
-
Visit https://dns.google/
-
Or run in terminal/command prompt:
It should show Google’s DNS server IP.
✅ Tip: For offices, it’s often best to set Google DNS directly on the modem/router so all connected devices benefit automatically.