To change to Google DNS, enter 8.8.8.8 and 8.8.4.4 in your connection’s DNS server fields, or enter dns.google in Android’s Private DNS setting. Before replacing anything, record the existing DNS addresses and whether the connection uses automatic DNS so you can restore them later. Choose the setup for your device, browser, or compatible router below.
The short version
- Standard addresses: Use 8.8.8.8 as the primary DNS server and 8.8.4.4 as the secondary server.
- Android setup: Enter dns.google as the Private DNS provider hostname.
- iPhone and iPad: The built-in manual DNS setting changes only the selected Wi-Fi network.
- Before changing anything: Record your existing settings so you can restore automatic DNS or the previous addresses.
| Device or method | Where to change DNS | What to enter or select |
|---|---|---|
| Windows 10 and 11 | Adapter IPv4 properties | 8.8.8.8 and 8.8.4.4 |
| Mac | Network service DNS settings | 8.8.8.8 and 8.8.4.4 |
| Android | Private DNS in network settings | dns.google |
| Samsung Galaxy | Private DNS in connection settings | dns.google |
| iPhone and iPad | Connected Wi-Fi network settings | 8.8.8.8 and 8.8.4.4 |
| Chromebook | Name servers for your wireless network | Google name servers |
| Linux with GNOME and NetworkManager | Connection DNS settings | 8.8.8.8 and 8.8.4.4 |
| Desktop Chrome | Use Secure DNS | Google provider or custom endpoint |
| Google Wifi and Nest Wifi | Google Home network settings | 8.8.8.8 and 8.8.4.4 |
Change DNS on Windows
On Windows 10 and Windows 11, use the classic adapter properties to change ordinary DNS. Open Control Panel > Network and Internet > Network and Sharing Center > Change Adapter Settings. Right-click the adapter for your active connection, then select Properties.
Select Internet Protocol Version 4 (TCP/IPv4), then select Properties. Select Use the following DNS server addresses and enter 8.8.8.8 in Preferred DNS server and 8.8.4.4 in Alternate DNS server. Select OK to save the change.
Keep the change limited to the DNS fields if you only want to change your DNS provider. You can retain your automatically assigned IP address with this procedure. These adapter steps configure ordinary DNS; the Chrome steps below configure encrypted DNS for that browser.
Set Google DNS on a Mac
On macOS 27, open the Apple menu > System Settings > Network. Select the network service you want to change, then open Details > DNS.
Under DNS Servers, use the add button to enter 8.8.8.8. Use the add button again to enter 8.8.4.4 as a separate server. If your connection has IPv6 connectivity, you can also enter Google’s IPv6 addresses, 2001:4860:4860::8888 and 2001:4860:4860::8844.
Removing an editable server entry deletes that address from the service’s DNS settings, so record it before removal. Select any unwanted editable server entry and use the remove button. Repeat the configuration for each additional network service you want to use Google DNS.
Use Private DNS on Android
On Android 9 and later, you can use Google DNS through Private DNS with the hostname dns.google. On modern Android, open Settings > Network & internet > Private DNS. If the menu is missing from that path, search Settings for Private DNS.
Select Private DNS provider hostname, enter dns.google, then tap Save. This field takes the hostname rather than either of Google’s numeric DNS addresses. The setup uses DNS-over-TLS across Wi-Fi and cellular networks, subject to app or VPN overrides.
On Samsung Galaxy devices with the One UI Private DNS control, open Settings > Connections > More connection settings > Private DNS. Select Private DNS provider hostname, enter dns.google, then tap Save. On a managed Galaxy device, a management policy can hide or lock this control.
Change DNS on iPhone or iPad
On your iPhone or iPad, open Settings > Wi-Fi and tap the information button beside the connected network. Open Configure DNS, then select Manual. This change applies only to that Wi-Fi network and does not change DNS for cellular data.
Removing the existing server entries deletes those addresses from this network’s manual DNS configuration, so record them first. Remove the existing entries, tap Add Server, and enter 8.8.8.8. Tap Add Server again, enter 8.8.4.4, then tap Save.
Repeat these steps for another Wi-Fi network when you want that network to use Google DNS too. Keep the previous settings for each network you change so you can restore automatic DNS or the recorded addresses for that connection.
Select Google name servers on a Chromebook
On your Chromebook, select the time, then select Wi-Fi Network. Select your wireless network and open Network. Under Name servers, select Google name servers.
Alternatively, select Custom name servers and enter 8.8.8.8 and 8.8.4.4. Make the change within the settings for the wireless network you intend to use. On a managed Chromebook, management settings can restrict DNS changes.
Configure DNS on a Linux desktop
On Linux desktops using GNOME and NetworkManager, open Settings > Network for Ethernet or Settings > Wi-Fi for wireless. Open the connection’s settings button, then select IPv4. In DNS, turn off Automatic and enter 8.8.8.8 and 8.8.4.4.
The address controls vary by distribution, so use the plus button to add the second address where shown. Retain automatic IP addressing when you only want to change DNS. Select Apply, then reconnect.
For a connection with IPv6 connectivity, open IPv6 and enter 2001:4860:4860::8888 and 2001:4860:4860::8844 in its DNS controls. Turn off Automatic for DNS while retaining automatic IP addressing. Select Apply, then reconnect.
Use Google secure DNS in Chrome
In desktop Chrome, open More > Settings > Privacy and security > Security. Under Advanced, turn on Use Secure DNS. Choose a custom provider and select Google.
If the provider control offers custom URL entry, enter https://dns.google/dns-query, Google’s DNS-over-HTTPS endpoint. This setting applies to Chrome, so use the applicable device or router setup to change DNS beyond the browser.
Google says this consumer control is unavailable when the device is managed or parental controls are enabled. A device or router DNS change remains separate from Chrome’s secure DNS configuration, and browser settings or management policies can override it.
Set Google DNS on Google Wifi or Nest Wifi
For a Google Wifi or Nest Wifi network managed through Google Home, open the Google Home app. Go to Home > Wifi > Network settings > Advanced Networking > DNS. Record the existing DNS settings, then select Custom.
Enter 8.8.8.8 as the primary address and 8.8.4.4 as the secondary address. If you also need IPv6 DNS and have IPv6 connectivity, enter 2001:4860:4860::8888 and 2001:4860:4860::8844 in the IPv6 fields. Select Save to apply the settings.
Restore your previous DNS settings
If connectivity fails after the change, return to the same DNS controls and check your entries. Ordinary DNS server fields take numeric addresses, while Android’s Private DNS provider hostname field takes dns.google. Google’s IPv6 DNS addresses require IPv6 connectivity.
Restoring your previous settings replaces the Google DNS configuration in the controls you change. Select automatic DNS or enter the previous addresses you recorded, and restore any separate browser setting you changed. Where DNS settings belong to individual networks or services, return to the specific connection you edited.
Frequently Asked Questions
Do you need to install an app to use Google Public DNS?
No installation is required for the built-in setup methods. You can enter Google’s addresses or hostname directly in the relevant device or router settings.
Does Automatic on Google Wifi always select Google DNS?
Automatic can use Google DNS or your internet provider’s DNS. Select Custom and enter Google’s addresses when you specifically want to configure Google DNS.
Does choosing Google DNS also turn on encryption?
Entering Google’s numeric addresses in ordinary DNS fields configures ordinary DNS. For encrypted DNS, use a supported DNS-over-TLS or DNS-over-HTTPS setting; Windows 10’s released Settings interface does not provide DNS-over-HTTPS.
Can you use Google’s lookup page as a custom DNS-over-HTTPS server?
Use https://dns.google/dns-query in an application that explicitly supports a custom RFC 8484 DNS-over-HTTPS endpoint. The https://dns.google/ address is a human-readable lookup page, and Google’s separate JSON API endpoint serves a different interface.