← All DNS guides

How to set up OpenDNS or Google DNS on Android

Android 9+ supports Private DNS (DNS over TLS). You can also set classic DNS per Wi‑Fi network.

Why change DNS on Android?

Hotel and ISP Wi‑Fi often break resolution. Private DNS keeps lookups working on both Wi‑Fi and mobile data.

Recommended public DNS servers

  • OpenDNS (Cisco): 208.67.222.222 / 208.67.220.220
  • Google Public DNS: 8.8.8.8 / 8.8.4.4
  • Cloudflare DNS: 1.1.1.1 / 1.0.0.1

Private DNS (recommended, Android 9+)

  1. Open Settings → Network & internet (or Connections) → Private DNS.
  2. Select Private DNS provider hostname.
  3. Enter dns.google for Google Public DNS over TLS.
  4. Save. OpenDNS hostname support varies; if Private DNS fails, use per-Wi‑Fi static DNS below.
  5. Alternate Wi‑Fi method: long-press the network → Modify → Advanced → IP settings → Static, then set DNS 1 / DNS 2 to 8.8.8.8 and 8.8.4.4 (or OpenDNS IPs). Keep the existing IP/gateway unless you know what to change.

Clear DNS-related state

Android has no simple flushdns command; toggle flight mode instead.

  1. Enable Airplane mode for 15 seconds, then disable it.
  2. Or forget the Wi‑Fi network and reconnect.
  3. Force-stop the browser and reopen the site.

Verify it worked

If cellular works and Wi‑Fi fails after Private DNS, the hotspot may block outbound DNS-over-TLS, fall back to static DNS on that SSID.

Related DNS guides