WhichWebHosting home

HomeGuidesDomains and DNSWhat are the Google Public DNS addresses?

What are the Google Public DNS addresses?

Published

Share

To try Google Public DNS, you configure your network settings to use the IP addresses 8.8.8.8 and 8.8.4.4 as your DNS servers.1, source 1 For IPv6, the addresses are 2001:4860:4860::8888 and 2001:4860:4860::8844.2, source 2 You can configure Google Public DNS addresses for IPv4 connections, IPv6 connections, or both.2, source 2

What are the Google Public DNS addresses?

The two Google Public DNS IPv4 addresses are 8.8.8.8 and 8.8.4.4.2, source 2 The Google Public DNS IPv6 addresses are 2001:4860:4860::8888 and 2001:4860:4860::8844.2, source 2 Some devices require explicit values for all eight fields of an IPv6 address and cannot accept the abbreviated :: IPv6 address syntax.2, source 2 For devices that cannot accept the :: syntax, the explicit IPv6 entries are 2001:4860:4860:0:0:0:0:8888 and 2001:4860:4860:0:0:0:0:8844.2, source 2

Where an IPv6 field requires four hexadecimal digits, the 0 entries are expanded to 0000.2, source 2 You can use either Google Public DNS address as your primary or secondary DNS server.2, source 2 For the most reliable DNS service, configure at least two DNS addresses.2, source 2 You should not specify the same address as both the primary and the secondary DNS server.2, source 2

The order in which you enter the two Google Public DNS addresses does not matter.3, source 3 Queries sent to Google Public DNS are routed to the nearest location advertising the anycast address used, which is 8.8.8.8, 8.8.4.4, or one of the IPv6 addresses in 2001:4860:4860::.3, source 3 Anycast routing directs your queries to the closest Google Public DNS server.3, source 3

What is Google Public DNS?

The Domain Name System serves as the Internet's phone book, and your computer performs a DNS lookup every time you visit a website.1, source 1 Google Public DNS is a recursive DNS resolver.4, source 4 It is a free, global DNS resolution service that you can use as an alternative to your current DNS provider.3, source 3 Use of Google Public DNS does not require any account.3, source 3

There is no Service Level Agreement (SLA) for the free Google Public DNS service.3, source 3 Google Public DNS servers are not authoritative for any domain.4, source 4 Google Public DNS is not a DNS hosting service and cannot be used to host your domain name.3, source 3 For a high-volume, programmable, authoritative name server using Google's infrastructure, Google points to its Cloud DNS service.4, source 4

Google Public DNS rarely performs blocking or filtering, though it may if Google believes this is necessary to protect people from security threats, or as required by law.4, source 4 Google says Google Public DNS never redirects you.4, source 4 You can set Google Public DNS as your primary or secondary DNS resolver alongside your current DNS resolver.3, source 3 When configured resolvers differ in security or filtering, you get the weakest level of security or filtering of all of them.3, source 3

Using Google Public DNS together with resolvers that do not validate DNSSEC disables DNSSEC security.3, source 3

How do you change your DNS settings on Windows, macOS and Linux?

In most cases, DHCP automatically configures your system to use the IP addresses of your ISP's domain name servers.2, source 2 To use Google Public DNS, you need to explicitly change the DNS settings in your operating system or device to use the Google Public DNS IP addresses.2, source 2 The procedure for changing DNS settings varies with the operating system and version (Windows, Mac, Linux, or ChromeOS) or the device (computer, phone, or router).2, source 2 Write down your current server addresses or settings before you change them, so that you can revert to them at any time.2, source 2

Depending on your network setup, you may need administrator or root privileges to change DNS settings.2, source 2

Windows 10

On Windows, DNS settings are specified in the TCP/IP Properties window for the selected network connection.2, source 2 On Windows, the base operating system has no support for DNS-over-TLS, which requires setting up a proxy resolver that supports it.2, source 2

  1. On Windows 10, you go to the Control Panel and click Network and Internet > Network and Sharing Center > Change adapter settings.2, source 2
  2. On Windows 10, you right-click the Ethernet interface to change an Ethernet connection, or the Wi-Fi interface to change a wireless connection, and select Properties.2, source 2
  3. On Windows 10, on the Networking tab you select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and then click Properties.2, source 2
  4. On Windows 10, you click Advanced and select the DNS tab, write down any DNS server IP addresses listed there, and remove them from that window.2, source 2
  5. On Windows 10, you select Use the following DNS server addresses and then replace any addresses in the Preferred DNS server or Alternate DNS server fields with the Google addresses.2, source 2

macOS 10.15

On macOS, DNS settings are specified in the Network window.2, source 2

  1. On macOS 10.15, the path to the settings is Apple menu > System Preferences > Network.2, source 2
  2. On macOS 10.15, for a Wi-Fi connection you select Wi-Fi and click Advanced, and for an Ethernet connection you select Built-In Ethernet and click Advanced.2, source 2
  3. On macOS 10.15, on the DNS tab you click + to replace any listed addresses with, or add, the Google IP addresses at the top of the list.2, source 2
  4. On macOS 10.15, you finish by clicking OK > Apply.2, source 2

Ubuntu

In most modern Linux distributions, DNS settings are configured through Network Manager.2, source 2

  1. On Ubuntu, you open System > Preferences > Network Connections.2, source 2
  2. On Ubuntu, you click Edit, and in the window that appears you select the IPv4 Settings or IPv6 Settings tab.2, source 2
  3. On Ubuntu, when the selected method is Automatic (DHCP), you open the dropdown and select Automatic (DHCP) addresses only instead.2, source 2
  4. On Ubuntu, you enter the Google Public DNS IP addresses in the DNS servers field, separated by a comma.2, source 2
  5. On Ubuntu, you click Apply to save the change, and you type your password or provide confirmation if prompted.2, source 2

A Debian server

On Linux distributions that do not use Network Manager, DNS settings are specified in /etc/resolv.conf.2, source 2

  1. On a Debian server, you edit /etc/resolv.conf with the command sudo vi /etc/resolv.conf.2, source 2
  2. On a Debian server, the IPv4 entries in /etc/resolv.conf are the lines nameserver 8.8.8.8 and nameserver 8.8.4.4.2, source 2
  3. On a Debian server, you then save and exit, and restart any Internet clients you are using.2, source 2

How do you change your DNS settings on ChromeOS, iPhone, Android and routers?

ChromeOS 71

On ChromeOS, DNS settings are specified in the Network section of the Settings menu for the selected network connection.2, source 2

  1. On ChromeOS 71, for IPv4 you select the Google name servers button, or you select the Custom name servers button and enter 8.8.8.8 and 8.8.4.4.2, source 2
  2. On ChromeOS 71, for IPv6 you select the Custom name servers button and enter 2001:4860:4860::8888 and/or 2001:4860:4860::8844.2, source 2
  3. On ChromeOS 71, you click outside the Network section to apply the settings.2, source 2

iPhone and iPad

On iOS, the DNS change applies only to the specific Wi-Fi network, not to other Wi-Fi networks or to DNS settings for cellular data.2, source 2 On iOS, changing the DNS for all networks including cellular data requires a VPN app that lets you configure the DNS server for the VPN.2, source 2

  1. On an iPhone, iPad, or iPod touch, you go to Settings > Wi-Fi and tap the info icon next to the Wi-Fi network whose DNS servers you want to change.2, source 2
  2. On iOS, you scroll down to find the DNS section and tap Configure DNS.2, source 2
  3. On iOS, you tap Manual and add the Google IP addresses, and you can optionally remove all default DNS servers in the list.2, source 2

On iOS, switching back to Automatic restores the DNS server specified by the Wi-Fi network.2, source 2

Android 9 or higher

Android 9 (Pie) or higher supports Private DNS, which uses DNS-over-TLS to provide security and privacy for your DNS queries.2, source 2 Devices running versions older than Android 9 do not support DNS-over-TLS and cannot configure private DNS for all networks.2, source 2 On Android 9, VPNs and third-party DNS changer apps override Private DNS and do not send DNS-over-TLS queries to Google Public DNS.2, source 2

  1. On Android 9 or higher, the path to the setting is Settings > Network & Internet > Advanced > Private DNS.2, source 2
  2. On Android 9 or higher, you select Private DNS provider hostname and enter dns.google as the hostname of the DNS provider.2, source 2
  3. On Android 9 or higher, you then click Save.2, source 2

Routers

Every router uses a different user interface for DNS server settings.2, source 2 Some ISPs hard-code their DNS servers into the equipment they provide, and a device like that cannot be configured to use Google Public DNS.2, source 2

  1. To change router settings, you enter the router's IP address in your browser to view its administration console.2, source 2 Most routers are manufactured to use a default address such as 192.168.0.1, 192.168.1.1, 192.168.2.1, or 192.168.1.100.2, source 2
  2. On a router, when prompted, you enter the password to edit network settings.2, source 2
  3. On a router, you find the screen in which DNS server settings are specified.2, source 2
  4. On a router, if IP addresses are specified in the fields for the primary and secondary DNS servers, you write them down for future reference.2, source 2
  5. On a router, you replace those addresses with the Google IP addresses.2, source 2
  6. On a router, you save and exit, and then restart your browser.2, source 2

How do you test the change and switch back?

To test the settings, enter a hostname URL such as http://www.google.com/ in your browser.2, source 2 After the hostname resolves correctly, you 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, source 2 A fixed IP address you can use as a test URL is http://216.218.228.119/, which points to the test-ipv6.com website.2, source 2 There is a problem with your DNS configuration when the fixed-IP test works but the hostname test fails.2, source 2

An IPv6-only system using Google Public DNS64 tests with http://[64:ff9b::d8da:e477]/ as the fixed URL.2, source 2 You do not have access to a NAT64 gateway at the reserved prefix 64:ff9b::/96 and cannot use Google Public DNS64 when the DNS64 fixed-URL test does not work.2, source 2 When the tests still do not work after you roll back your DNS changes, there is a problem with your network settings, and you should contact your ISP or network administrator.2, source 2

If you had not previously configured custom DNS servers, you switch back by selecting the option to obtain DNS server addresses automatically, or by deleting the Google IP addresses.2, source 2 Switching back to automatic addressing reverts your settings to using your ISP's default servers.2, source 2 If you need to specify old addresses manually, you use the same procedures to enter the old IP addresses, and restart your system if necessary.2, source 2

What are the Google DNS over HTTPS and DNS over TLS settings?

Google says it offers DNS over TLS (DoT) and DNS over HTTPS (DoH), in addition to traditional DNS over UDP or TCP, for greater security and privacy.1, source 1 Traditional DNS queries and responses are sent over UDP or TCP without encryption, which makes them vulnerable to eavesdropping and spoofing.5, source 5 DNS over HTTPS is DNS resolution over an encrypted HTTPS connection.3, source 3 Google Public DNS offers DNS resolution over TLS-encrypted TCP connections as specified by RFC 7858.5, source 5

The Google Public DNS DoT endpoint is the hostname dns.google on port 853.6, source 6 The Google Public DNS DoH endpoints use port 443.6, source 6 The RFC 8484 DoH URI template is https://dns.google/dns-query{?dns}.6, source 6 The Google Public DNS JSON API for DoH is at https://dns.google/resolve{?name}{&type,cd,do,…}.6, source 6

Google Public DNS supports TLS 1.2 and TLS 1.3 for both DoH and DoT, and no earlier versions of TLS or SSL.6, source 6 RFC 8484 GET requests must have a ?dns= query parameter with a Base64Url encoded DNS message.7, source 7 The POST method is supported only for the RFC 8484 API, and it uses a binary DNS message with the content type application/dns-message.7, source 7 An HTTP 200 OK response from DoH may still be a DNS failure, so you check the DNS response code for the DNS errors SERVFAIL, FORMERR, REFUSED, and NOTIMP.7, source 7

With the strict privacy profile of DNS-over-TLS, the client must be able to create a secure TLS connection on port 853 to the DNS server, and failure to do so means no DNS service for the client.5, source 5 With the opportunistic privacy profile, a client that cannot establish a secure connection on port 853 falls back to the standard DNS port 53 over UDP or TCP without any security or privacy.5, source 5

What does Google Public DNS log?

Google says it does not use any personal information collected through the Public DNS service to target ads.8, source 8 It also says it does not correlate personal information in Google Public DNS logs with your information from any other Google service, except for addressing security and abuse.8, source 8 Google's privacy policy applies to the DNS-over-TLS service.5, source 5

Google says its temporary logs are the only logs that store both your IP address and your DNS query, and that they are subject to its deletion processes within 24-48 hours.8, source 8 To address security and abuse issues, Google may retain information from the temporary logs for longer than 48 hours, solely for the limited purpose of resolving such issues.8, source 8 Temporary logs are used to identify and mitigate security threats or abusive activity, to fix, maintain and improve Google DNS services, and to generate aggregate non-personally identifiable DNS usage summaries.8, source 8

Google describes the permanent logs as a sampling of the temporary logs where your IP address is removed and replaced by a city or region-level location.8, source 8 The permanent logs record the requested domain name and the request type, such as A, AAAA, NS, MX, or TXT.8, source 8 They also record the transport protocol, which is TCP, UDP, TLS, or HTTPS.8, source 8

What are the Google Public DNS64 addresses?

Google Public DNS64 provides DNS64 as a global service using the reserved NAT64 prefix 64:ff9b::/96.9, source 9 A NAT64 gateway lets IPv6-only clients connect to IPv4-only services via synthetic IPv6 addresses starting with a prefix that routes them to the gateway.9, source 9 DNS64 returns AAAA records with synthetic IPv6 addresses for IPv4-only destinations, which have A but not AAAA records in the DNS.9, source 9 Google Public DNS64 is intended only for networks with access to a NAT64 gateway using the reserved prefix 64:ff9b::/96.9, source 9

The Google Public DNS64 resolver addresses are 2001:4860:4860::6464 and 2001:4860:4860::64.9, source 9 For devices that cannot accept the :: syntax, the explicit DNS64 entries are 2001:4860:4860:0:0:0:0:6464 and 2001:4860:4860:0:0:0:0:64.9, source 9 Do not configure any other IPv6 addresses with Google Public DNS64, because doing so makes DNS64 unreliable.9, source 9 If you also configure the Google Public DNS IPv4 addresses 8.8.8.8 or 8.8.4.4, dual-stack hosts may not get synthesized AAAA records sometimes.9, source 9

Google Public DNS64 is not needed for dual-stack networks or hosts, though it does work and returns both synthesized AAAA records and original A records.9, source 9 Google Public DNS64 supports DoH and DoT using the dns64.dns.google domain instead of dns.google.9, source 9

Common questions

What is 8.8.8.8?

8.8.8.8 is one of the two Google Public DNS IPv4 addresses. The other IPv4 address is 8.8.4.4. You can configure your network settings to use these IP addresses as your DNS servers. You can use either Google Public DNS address as your primary or secondary DNS server.

What are the Google DNS IPv6 addresses?

The Google Public DNS IPv6 addresses are 2001:4860:4860::8888 and 2001:4860:4860::8844. For devices that cannot accept the :: syntax, the explicit IPv6 entries are 2001:4860:4860:0:0:0:0:8888 and 2001:4860:4860:0:0:0:0:8844. You can configure Google Public DNS addresses for IPv4 connections, IPv6 connections, or both.

Does Google DNS support DNS over HTTPS?

Yes, Google Public DNS provides DNS over HTTPS and DNS over TLS. DNS over HTTPS is DNS resolution over an encrypted HTTPS connection. The Google Public DNS DoH endpoints use port 443. Google Public DNS supports TLS 1.2 and TLS 1.3 for both DoH and DoT.

What hostname do you enter for Private DNS on Android?

You enter dns.google as the hostname on Android 9 or higher. Android 9 or higher supports Private DNS, which uses DNS-over-TLS to provide security and privacy for your DNS queries. Devices running versions older than Android 9 do not support DNS-over-TLS and cannot configure private DNS for all networks.

Do you need a Google account to use Google DNS?

No, use of Google Public DNS does not require any account. Google Public DNS is a free, global DNS resolution service that you can use as an alternative to your current DNS provider. There is no Service Level Agreement (SLA) for the free Google Public DNS service.

How many DNS addresses should you configure?

At least two, for the most reliable DNS service. You should not specify the same address as both the primary and the secondary DNS server.

Sources

Every fact on this page comes from one of these, checked before it goes live.

More guides

Domains and DNS

How to check if a domain name is available

Run a check on domain name availability with a Whois or RDAP lookup, then read the status codes that show when a deleted domain can be registered again.

· Mateo Cardenas

Domains and DNS

How to choose a domain name

Pick a domain name whose labels meet the character and length rules, then check its top-level domain and whether it could infringe someone else's rights.

· Mateo Cardenas

Domains and DNS

How to do a DNS lookup

Learn how to do a DNS lookup with nslookup, Resolve-DnsName, dig and host. Understand DNS record types, view your settings and read the query results.

· Mateo Cardenas

Domains and DNS

How to register a domain name

Learn how to register a domain name: choose a registrar, give accurate contact details, and understand renewal, free domain and transfer rules.

· Mateo Cardenas