New
June 13, 2023
By
Durga Prasad

Configure your network settings to use Google Public DNS

When you use Google Public DNS, you are changing the operator of your DNS "switchboard" from your ISP to Google Public DNS. In most cases, the Dynamic Host Configuration Protocol (DHCP) configures your system to use the IP addresses of your Internet Service Provider's domain name servers. You must explicitly change the DNS settings in your operating system or device to use the Google Public DNS IP addresses in order to use Google Public DNS. The method for changing your DNS settings differs depending on your operating system and version (Windows, Mac, Linux, or ChromeOS) or the device (computer, phone, or router). We provide general procedures that may not apply to your operating system or device; consult your vendor documentation for authoritative information.

Depending on your system, you may also be able to enable a new privacy-oriented feature known as DNS-over-TLS. This feature protects the privacy and security of DNS messages sent between your device and Google's DNS servers. Details on configuring this optional feature are provided in separate sections for each system.

Important:

Before you change your DNS settings to use Google Public DNS, be sure to write down the current server addresses or settings on a piece of paper. It is very important that you keep these numbers for backup purposes, in case you need to revert to them at any time.

We also recommend that you print this page, in the event that you encounter a problem and need to refer to these instructions.

Google Public DNS IP addresses

The Google Public DNS IP addresses (IPv4) are as follows:

8.8.8.8
8.8.4.4

The Google Public DNS IPv6 addresses are as follows:

2001:4860:4860::8888
2001:4860:4860::8844

Some devices require explicit values for all eight fields of IPv6 addresses and cannot accept the abbreviated :: IPv6 address syntax. For such devices enter:

2001:4860:4860:0:0:0:0:8888
2001:4860:4860:0:0:0:0:8844
Note: Expand the 0 entries to 0000 if four hexadecimal digits are required.

You can use either address as your primary or secondary DNS server. For the most reliable DNS service, configure at least two DNS addresses. Do not specify the same address as both primary and secondary. You can configure Google Public DNS addresses for either IPv4 or IPv6 connections, or both. For IPv6-only networks with a NAT64 gateway using the 64:ff9b::/96 prefix, you can use Google Public DNS64 instead of Google Public DNS IPv6 addresses, providing connectivity to IPv4-only services without any other configuration.

Change your DNS servers settings

Because the instructions differ between different versions/releases of each operating system. 

Also, many systems let you specify multiple DNS servers, to be contacted in priority order. In the following instructions, we provide steps to specify only the Google Public DNS servers as the primary and secondary servers, to ensure that your setup correctly uses Google Public DNS.

Windows:

1. Open the Control Panel.
2. Go to "Network and Internet" > "Network and Sharing Center" > "Change adapter settings."
3. Right-click on the network connection you want to configure (Ethernet or Wi-Fi) and select "Properties."
4. If prompted, provide the administrator password or confirmation.
5. In the Networking tab, select either "Internet Protocol Version 4 (TCP/IPv4)" or "Internet Protocol Version 6 (TCP/IPv6)" and click on "Properties."
6. Click on the "Advanced" button and go to the "DNS" tab.
7. Note down any existing DNS server addresses listed and remove them from the list.
8. Select "Use the following DNS server addresses" and enter the Google Public DNS IP addresses:

For IPv4: Preferred DNS server: 8.8.8.8, Alternate DNS server: 8.8.4.4.
For IPv6:
Preferred DNS server: 2001:4860:4860::8888, Alternate DNS server: 2001:4860:4860::8844.

9. Click "OK" and close any open windows.
10. Repeat these steps for any additional network connections you want to change.

macOS:

1. Click on the Apple menu and select "System Preferences" > "Network."
2. If necessary, click the lock icon and enter your password to make changes.
3. Select the network connection you want to configure (Wi-Fi or Ethernet) from the left pane.
4. Click on the "Advanced" button.
5. Go to the "DNS" tab.
6. Remove any existing DNS server addresses by selecting them and clicking the minus (-) button.
7. Click the plus (+) button to add a new DNS server.
8. Enter the Google Public DNS IP addresses:

For IPv4: 8.8.8.8, 8.8.4.4.
For IPv6:
2001:4860:4860::8888, 2001:4860:4860::8844.

9. Click "OK" and then "Apply."
10 Repeat these steps for any additional network connections you want to change.

Linux (Ubuntu):

1. Click on the system menu and go to "Settings" > "Network."
2. Select the network connection you want to configure (Ethernet or Wi-Fi).
3. Click on the gear icon next to the connection and select "Edit Connections."
4. In the "Network Connections" window, select the connection you want to modify and click the "Edit" button.
5. In the "IPv4" or "IPv6" tab, choose the method "Automatic (DHCP) addresses only."
6. Enter the Google Public DNS IP addresses in the "DNS servers" field:

For IPv4: 8.8.8.8, 8.8.4.4.
For IPv6:
2001:4860:4860::8888, 2001:4860:4860::8844.

7. Click "Save" and close the "Network Connections" window.
8. Repeat these steps for any additional network connections you want to change.

ChromeOS:

1. Click on the system tray in the bottom-right corner and select the network icon.
2. Click on the name of the network you want to configure.
3. In the "Network" section, click on "Wi-Fi" or "Ethernet" to expand the settings.
4. Click on the "DNS" section.
5. Click the "Custom name servers" option.
6. Enter the Google Public DNS IP addresses:

For IPv4: 8.8.8.8, 8.8.4.4.
For IPv6:
2001:4860:4860::8888, 2001:4860:4860::8844.

7. Click "Done" to save the changes.

Routers:

1. Open your web browser and enter the IP address of your router to access the router's administration console. The default IP addresses are usually 192.168.0.1, 192.168.1.1, 192.168.2.1, or 192.168.1.100. If none of these work, check your network settings for the default gateway address.
2. Enter the password when prompted to access the network settings.
3. Locate the screen where DNS server settings are specified.
4. If there are existing IP addresses specified for the primary and secondary DNS servers, write them down for reference.
5. Replace those addresses with Cloudflare's DNS IP addresses:

For IPv4: Set the primary DNS server to 1.1.1.1 and the secondary DNS server to 1.0.0.1.
For IPv6:
Set the primary DNS server to 2606:4700:4700::1111 and the secondary DNS server to 2606:4700:4700::1001.

6. Save the changes and exit the router's administration console.
7. Restart your browser.
8. Test the new DNS settings to ensure they are working correctly.

IOS:

1. Open the Settings app on your iPhone, iPad, or iPod touch.
2. Go to "Wi-Fi" settings.
3. Tap the ⓘ icon next to the Wi-Fi network for which you want to change DNS servers.
4. Scroll down and tap "Configure DNS."
5. Select "Manual" and remove any existing DNS servers from the list.
6. Add Cloudflare's DNS IP addresses:

For IPv4: Enter 8.8.8.8 and/or 8.8.4.4.
For IPv6:
Enter 2001:4860:4860::8888 and/or 2001:4860:4860::8844.

7. Tap "Save" to apply the changes.

Android (Android 9 or higher):

1. Open the Settings app on your Android device.
2. Go to "Network & Internet" settings.
3. Select "Advanced" and then "Private DNS."
4. Choose the "Private DNS provider hostname" option.
5. Enter "dns.google" as the hostname of the DNS provider.
6. Tap "Save" to apply the changes.

Note: For older Android versions, the process may vary, and you will need to configure DNS settings for each individual Wi-Fi network.

Other mobile devices:

Since each mobile device has a different user interface for configuring DNS server settings, follow these generic steps:

1. Go to the screen where Wi-Fi settings are specified.
2. Find the screen where DNS server settings are specified.
3. If there are existing IP addresses for the primary and secondary DNS servers, write them down.
4. Replace those addresses with Cloudflare's DNS IP addresses:

For IPv4: Set the primary DNS server to 1.1.1.1 and the secondary DNS server to 1.0.0.1.
For IPv6:
Set the primary DNS server to 2606:4700:4700::1111 and the secondary DNS server to 2606:4700:4700::1001.

5. Save the changes.
6. Test the new DNS settings to ensure they are working correctly.

Test your new settings

To test that the Google DNS resolver is working:

1. From your browser, enter a hostname URL (such as http://www.google.com/). If it resolves correctly, quit the browser, load the page again and refresh it several times to make sure the result is not from a cached web page.
2. If you are using Google Public DNS64 on an IPv6-only system, repeat the above test with an IPv4-only hostname URL (such as http://ipv4.google.com/).
3. If all of these tests work, everything is working correctly. If not, go to the next step.
4. From your browser, type in a fixed IP address. You can use http://216.218.228.119/ (which points to the test-ipv6.com website) as the URL.
‍5. If you are using Google Public DNS64 on an IPv6-only system, use http://[64:ff9b::d8da:e477]/ as the URL instead. If this test does not work, you do not have access to a NAT64 gateway at the reserved prefix 64:ff9b::/96 and cannot use Google Public DNS64.
6. If you are using an IPv6-only system without Google Public DNS64, use http://[2001:470:1:18::119]/ as the URL instead.
7. If this works, reload the page with a new browser window to ensure that the page is loaded from scratch. If these tests pass (but step 1), there is a problem with your DNS configuration; check the steps above to ensure you have configured everything correctly. If these tests are ineffective, proceed to the next step.
8. Revert the DNS changes you made and run the tests again. If the tests still fail, there is a problem with your network settings; contact your ISP or network administrator for assistance.

Switch back to your old DNS settings

To return to your previous settings if you had not previously configured any customised DNS servers, in the window where you specified the Google IP addresses, select the option to enable obtaining DNS server addresses automatically and/or delete the Google IP addresses. This restores your settings to the default servers of your ISP.

Conclusion:

By understanding the benefits and implementation steps of Google Public DNS, you can optimize your internet connection for faster browsing, improved security, and enhanced privacy. Whether you're a casual internet user or a tech enthusiast, utilizing Google Public DNS can significantly enhance your online experience.

Suggestions:

How to change browser download settings for PDF files
How to update Safari browser on your Mac

How to update Google Chrome Browser