Sticky Banner Visual Mobile 3

Don't miss the Spring Deal: Save up to 78% before April 21.

Don't miss the Spring Deal: Save up to 78% before April 21. Claim now!

Claim Now!
  • What is Google Public DNS?
  • How does Google DNS work?
  • Key features of Google DNS
  • Google DNS vs. other DNS resolvers
  • How to change your DNS settings
  • How to check if your DNS change worked
  • Is Google DNS good for gaming and streaming?
  • FAQ: Common questions about Google DNS
  • What is Google Public DNS?
  • How does Google DNS work?
  • Key features of Google DNS
  • Google DNS vs. other DNS resolvers
  • How to change your DNS settings
  • How to check if your DNS change worked
  • Is Google DNS good for gaming and streaming?
  • FAQ: Common questions about Google DNS

What is Google DNS, and how does it work?

Featured 10.04.2026 9 mins
Chantelle Golombick
Written by Chantelle Golombick
Ata Hakçıl
Reviewed by Ata Hakçıl
Amy Clark
Edited by Amy Clark
what-is-google-dns (1)

Google Public DNS is a recursive resolver that translates domain names, such as expressvpn.com, into IP addresses. This guide covers how it works, its features, how this recursive resolution service compares to alternatives like Cloudflare, and setup steps.

What is Google Public DNS?

Google Public DNS is a free public DNS service launched by Google that resolves domain names for users instead of their default internet service provider (ISP). It directs requests to a nearby data center through its global anycast network, which can reduce lookup times and may improve reliability compared with some ISP DNS resolvers.

For security, Google Public DNS performs Domain Name System Security Extensions (DNSSEC) validation by default. DNSSEC uses cryptographic signatures to verify that DNS responses haven’t been altered, helping protect against attacks such as DNS spoofing or cache poisoning.

The service also supports encrypted DNS protocols that encrypt DNS requests between a device and the resolver, though they must be enabled in the device, browser, or network settings.

Learn more: DNS server not responding? How to fix it

How does Google DNS work?

When you enter a domain in your browser, your device queries a DNS resolver to get the IP address for that domain. Google Public DNS acts as your recursive resolver.The five-step process of how Google DNS resolves a domain name into an IP address.

The resolver:

  • Checks its cache first (if cached, it responds with the IP address).
  • Queries the DNS hierarchy if an IP address hasn’t been cached: root nameservers > Top-Level Domain (TLD) nameservers (e.g., .com) > authoritative nameservers for the domain.
  • Returns the IP and caches it for future use.

Anycast routes queries to the nearest available server, distributing requests across multiple locations instead of relying on a single endpoint.

Google Public DNS vs. Google Cloud DNS

Google Public DNS and Cloud DNS serve different functions:

  • Google Public DNS: A recursive resolver that helps you look up addresses.
  • Google Cloud DNS: A DNS hosting service for website owners and developers. It hosts the DNS records for their domains, so the world can find their websites.

Google DNS IP Addresses (8.8.8.8 and 8.8.4.4)

Google DNS uses two standard IPv4 addresses:

  1. 8.8.8.8
  2. 8.8.4.4

These are popular, partly because they're easy to remember, and they're published as Google's standard public DNS endpoints. That said, the service also supports IPv6 with the following addresses:

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

Some home users still rely on IPv4, but whichever you choose, both IP addresses point to the same DNS service and provide identical functionality.

Some users choose to configure both IPv4 and IPv6 DNS servers in their network settings so that devices can use either protocol.

Learn more: IPv4 vs IPv6

Key features of Google DNS

Google Public DNS offers several core resolver and security features:

  • Recursive DNS resolution: Receives DNS queries and returns cached results or retrieves them from the DNS hierarchy when needed.
  • Global anycast infrastructure: Routes queries through a global anycast network, so requests reach a nearby Google server.
  • DNSSEC validation: Validates DNSSEC responses to help confirm that DNS records haven’t been altered in transit.
  • Encrypted DNS support: Supports DNS over HTTPS (DoH) and DNS over TLS (DoT) for clients that enable encrypted DNS.
  • Large-scale resolver infrastructure: Uses global infrastructure, load balancing, and shared caching to handle high query volumes.
  • Public endpoints: Provides standard IPv4 and IPv6 addresses for device and router configuration.
  • Logging transparency: Publishes a Public DNS privacy page explaining what data it logs, how long it retains it, and how it is used. Google states that Public DNS logs include temporary records with IP addresses that are retained for a short period, as well as longer-term anonymized data used for analysis, and that this data is not used to target ads.

Google DNS vs. other DNS resolvers

Public DNS resolvers differ in their approach to performance, privacy practices, and security features. Some prioritize fast global resolution, while others focus on threat filtering or stricter data-retention policies.

The table below compares Google Public DNS with several widely used public DNS resolvers and typical ISP-provided DNS services. Actual performance and logging practices can vary depending on network conditions and provider policies.

Supported DNS encryption protocols Privacy Security features Content filtering
Google DNS DoH, DoT Temporary full-IP logs (24–48h); permanent anonymized data. DNSSEC validation; anti-cache poisoning & amplification protection. None.
Cloudflare (1.1.1.1) DoH, DoT, DoQ Minimal; IP truncated & logs deleted in 25h DNSSEC; optional malware/adult blocking (1.1.1.2/1.1.1.3). Optional variants.
OpenDNS DoH (Limited support) Varies; logs for security/policy Blocks malware, phishing, and botnets. Customizable parental controls (free account).
Quad9 DoH, DoT, DoQ Minimal; does not retain IP addresses in logs; Swiss-based. Blocks malicious domains Security threats only (no adult content)

Note: Support for encrypted DNS protocols depends on configuration and isn’t always enabled by default.

Learn more: DNS vs. VPN vs. smart DNS

How to change your DNS settings

Switching your DNS involves replacing the automatic addresses provided by your ISP with specific numerical addresses from Google. Below, we show you how to apply these manual configurations across Windows, macOS, and mobile operating systems.

Configure Google DNS on Windows

Windows isolates these connection details within Settings or the Control Panel, depending on the version. You’ll need to access the properties of your active network adapter to input the new addresses:

  1. Open the Control Panel from the Start menu.Windows Control Panel (Category view) with “Network and Internet” highlighted.
  2. Select Network and Internet and then Network and Sharing Center.Control Panel “Network and Internet” page with “Network and Sharing Centre” highlighted.
  3. Click Change adapter settings on the left side.“Network and Sharing Centre” window with “Change adapter settings” highlighted in the left pane.
  4. Right-click your active connection and select Properties.Network Connections window showing a Wi-Fi connection right-click menu with “Properties” highlighted.
  5. Highlight Internet Protocol Version 4 (TCP/IPv4) and click the Properties button.“Wi-Fi Properties” dialog (Networking tab) with “Internet Protocol Version 4 (TCP/IPv4)” highlighted.
  6. Select Use the following DNS server addresses, and input 8.8.8.8 in the Preferred DNS server field and 8.8.4.4 in the Alternate DNS server field.“Internet Protocol Version 4 (TCP/IPv4) Properties” showing DNS set to 8.8.8.8 and 8.8.4.4.
  7. Click OK to apply the changes.

Update macOS DNS preferences

Apple organizes these configurations inside System Settings. You can assign specific DNS servers to your Wi-Fi or Ethernet connection in the advanced network settings.

  1. Open System Settings from the Apple menu.Apple menu open on macOS with System Settings highlighted.
  2. Click Network in the sidebar. Click on your active network service on the right.macOS System Settings open to Network, showing Wi-Fi connected.
  3. Click the Details button.macOS Wi-Fi settings showing the connected network with the Details button highlighted.
  4. Then select DNS from the menu.macOS network details window with the DNS tab selected.
  5. Click the + button at the bottom of the Servers list.macOS DNS settings with the plus icon highlighted.
  6. Type 8.8.8.8 and press OK. Repeat the process to add 8.8.4.4.macOS DNS settings showing 8.8.8.8 added under DNS Servers, with the OK button highlighted to save changes.

Switch to Google DNS on mobile devices

Smartphones let you manually configure DNS for specific Wi-Fi networks. This helps prevent the phone from defaulting to the router’s automatic settings.

For iOS (iPhone/iPad):

  1. Open Settings and tap Wi-Fi.iPhone Settings screen with Wi-Fi highlighted, showing the current wireless network selected.
  2. Tap the blue "i" icon next to your connected network.iPhone Wi-Fi settings page with the connected network selected and the information icon highlighted.
  3. Scroll down and tap Configure DNS.iPhone network details page showing IP settings, with Configure DNS highlighted.
  4. Change the setting from Automatic to Manual.iPhone Configure DNS screen with Manual selected.
  5. Tap Add Server and type 8.8.8.8. and repeat for 8.8.4.4.iPhone Configure DNS screen displaying 8.8.8.8 added under DNS Servers.

For Android:

On Android, DNS settings are typically configured using Private DNS, which uses DNS over TLS (DoT) and requires a provider hostname instead of IP addresses.

  1. Open Settings and select Connections.Android Settings screen with “Connections” highlighted.
  2. Tap More Connection Settings.Android “Connections” screen with “More connection settings” highlighted.
  3. Tap Private DNS and set it to Private DNS provider hostname, and enter dns.google for Google Public DNS over TLS.Android “Private DNS” screen with “Private DNS provider hostname” selected and “dns.google” entered.

For routers

Configuring your router is often the most efficient approach. This automatically applies the new DNS settings to all devices connected to your Wi-Fi, including smart TVs and game consoles that may lack a DNS menu.

If you prefer to keep your router on the default ISP settings, you can manually configure specific devices instead. This approach is useful if you want the speed of Google DNS on your computer but need a different setup for other hardware.

Every router interface differs, but the general process follows these steps:

  1. Enter your router’s IP address into a web browser (common defaults include 192.168.1.1 and 192.168.0.1) and log in with your admin credentials.Router admin sign in panel.
  2. Locate the DNS settings (often found under Advanced Settings > WAN). Select WAN DNS Settings. Input 8.8.8.8 as your primary DNS and 8.8.4.4 as your secondary.Router panel with WAN DNS Settings open and DNS Server 1 and DNS Server 2 highlighted.
  3. Click Save and restart your router to ensure all connected devices receive the update.

How to check if your DNS change worked

DNS settings can take a minute to apply, and some devices keep short-lived cached answers. A quick check confirms your lookups are going to the resolver you picked, not your ISP’s default.

  • Use nslookup (Windows and macOS): Open Command Prompt (Windows) or Terminal (macOS), then run nslookup cloudns.net.
    • Look for the Server line in the results. It typically shows the DNS server you set, such as 8.8.8.8 or 8.8.4.4. If it shows something else, your device may still be using a different resolver.Terminal window showing an nslookup command for “cloudns.net” using Google DNS server 8.8.8.8.
  • Double-check the active network settings: Reopen the DNS settings for the network you changed and confirm the addresses are still saved.
    • If you updated DNS on your router, reconnect your device to Wi-Fi or restart it to apply the new DNS settings.Router panel with WAN DNS Settings open and DNS Server 1 and DNS Server 2 highlighted.
    • On Android, confirm that Private DNS is set to your chosen provider’s hostname (for Google, dns.google).Android “More connection settings” screen showing Private DNS set to “dns.google".

Is Google DNS good for gaming and streaming?

Google DNS might improve your initial connection times when launching games, but it won't reduce your in-game ping or boost your download speeds once you're connected.

In the initial connection phase, a faster DNS could mean:​

  • Quicker server discovery and matchmaking.
  • Faster login to game platforms and launchers.
  • Reduced delays when joining multiplayer lobbies.
  • Smoother transitions between different game servers.

For streaming services, DNS mainly affects the initial connection. When you start playback, DNS helps determine which content delivery network (CDN) server your device connects to, which can influence how quickly the stream starts.

In some cases, public DNS resolvers like Google Public DNS may provide consistent resolution across regions. However, some ISPs operate local CDN caches for platforms like Netflix, which can result in faster or more efficient delivery when using the ISP’s default DNS. As a result, performance can vary depending on your network and location.

Learn more: Best DNS servers for gaming

FAQ: Common questions about Google DNS

What does using 8.8.8.8 for DNS do?

It switches your Domain Name System (DNS) resolver to Google Public DNS. When you input a domain, your device sends the lookup to Google’s servers, which return the IP address so your browser can connect. It may improve reliability and, in some cases, speed depending on network conditions. It does not encrypt traffic by itself.

Who owns the 8.8.4.4 DNS server?

Google. 8.8.4.4 is the secondary IPv4 address for Google Public DNS, paired with 8.8.8.8 for redundancy. Your device may use the other if one is unavailable or not supported.

Is Google DNS safe to use?

Generally, yes. It supports Domain Name System Security Extensions (DNSSEC) validation to help protect against certain Domain Name System (DNS) spoofing and cache-poisoning attacks, and it tends to be stable.

Does Google DNS log your data?

Domain Name System (DNS) resolvers can log queries, timestamps, and IP-related data for security, debugging, and abuse prevention. Google Public DNS states it keeps temporary logs that include IP address data for a limited period and retains longer-term anonymized or aggregated data for analysis.

Does Google DNS block malware or ads?

Not by default. Google Public DNS is mainly a resolver, not a filtering service. It can validate Domain Name System Security Extensions (DNSSEC), but it doesn't automatically block malicious domains, ads, or adult content the way some security-focused resolvers and Domain Name System (DNS) filtering tools do.

Take the first step to protect yourself online. Try ExpressVPN risk-free.

Get ExpressVPN
Content Promo ExpressVPN for Teams
Chantelle Golombick

Chantelle Golombick

After a decade working in corporate law and five years teaching at University, Chantelle now enjoys freelance life writing about law, cybersecurity, online privacy, and digital freedom for major cybersecurity and online privacy brands. She is particularly interested in the interplay between these digital issues and the law.

ExpressVPN is proudly supporting

Get Started