If your DNS provider supplies a hostname like one.one.one.one, you'll use Private DNS; if you're pointing at a home server IP, you'll change the connected Wi-Fi network's advanced settings instead. Private DNS applies to both Wi-Fi and cellular; per-network DNS affects only that Wi-Fi connection.
Choose Private DNS or a connected Wi-Fi network's DNS settings
Android 9 and later include a Private DNS setting that encrypts queries using DNS over TLS and applies to every network—Wi-Fi and cellular. The Private DNS field is documented for entering a provider hostname. If your resolver publishes a hostname, use Private DNS. If you run a local DNS server reachable only by IP, configure the Wi-Fi network's advanced IP settings.
Private DNS changes persist across network switches. A Wi-Fi network's DNS configuration applies only when you're connected to that specific network and doesn't affect mobile data.
Set Private DNS with a provider hostname on Android 9 or later
On devices running stock Android 11 or later, navigate to Settings > Network & internet, select Advanced, then Private DNS. Choose Private DNS provider hostname and enter the hostname your DNS provider supplies—for example, one.one.one.one for Cloudflare. Tap Save.
Android 9 and 10 follow the same path: Settings > Network & internet > Advanced > Private DNS. Select Private DNS provider hostname, enter the hostname, and save. Once configured, your device encrypts DNS queries and uses that resolver on all networks, including cellular. Manufacturer-customized Android versions may use different labels or navigation paths.
Change DNS in the connected Wi-Fi network's advanced IP settings
Open Settings > Wi-Fi, press and hold the name of the network you're currently connected to, then select Modify Network. Check Show Advanced Options and change IP Settings to Static. Enter your resolver's IPv4 or IPv6 addresses in those fields.
The source documentation does not specify which existing values to preserve or how to retrieve your current DHCP-assigned configuration before the switch, so this procedure cannot be completed reliably without additional device-specific instructions. This configuration applies only to the modified network.
Next step
The source documents Private DNS hostname setup and Wi-Fi IP configuration steps but does not provide a repeatable method to identify the active resolver or troubleshooting for invalid hostnames or connectivity loss.
Verification status: Supported by official documentation only under the conditions below; not reproduced in a test environment by IGPROD. Checked 2026-10-20.
Applies to: Android 11; Android 9 and 10.
Conditions:
- The documented Private DNS steps apply to Android 9 and later.
- The Wi-Fi procedure is for the network the device is currently connected to and requires changing IP Settings to Static.
Related guides
- tv-vibehack: reversible Android TV cleanup over ADB: clean up an Android TV from a computer.
Sources: