Android 9 and later have a single setting called “Private DNS”. When you type a provider name there, your phone uses that DNS on both Wi-Fi and mobile data, and the queries are encrypted.
This field takes a name, not a number; if you enter an IP address such as 1.1.1.1, the setting will not save.
Steps
- Open Settings.
- Go to Network & internet.
- Tap Private DNS. If you cannot see it, type “private DNS” in the Settings search box.
- Select Private DNS provider hostname.
- Type one of the names below and tap Save.
| Provider | Name to enter |
|---|---|
| Cloudflare | one.one.one.one |
dns.google |
|
| Quad9 | dns.quad9.net |
Menu path by brand
- Samsung: Settings › Connections › More connection settings › Private DNS
- Xiaomi, Redmi, POCO: Settings › More connectivity options › Private DNS
- Pixel and stock Android: Settings › Network & internet › Private DNS
Menu names can change with the phone’s software version; the quickest route is to search Settings for “DNS”.
If something goes wrong
If the internet stops completely after you save, the network you are on may be blocking the encrypted DNS connection. Set Private DNS to Automatic or Off; the connection comes back straight away. On networks that show a sign-in page, such as hotels and airports, you may also need to turn the setting off for a while.
Android 8 and earlier
These versions have no Private DNS. A DNS address can only be entered for a Wi-Fi network, by setting the IP settings to “Static” in that network’s options; it cannot be changed for mobile data. On these phones the most practical options are changing DNS on the router or turning on secure DNS in the browser.
