Private DNS
Switches Private DNS between the modes you pick, one tap at a time.
- Tile type
- On and off
- Needs
- Android 9 or later
- Permissions
- 1 required
How it works
Each tap moves Private DNS to the next mode you picked: Off, Automatic, or your own provider.
Turning it back on brings back the last provider you used, so you never type the hostname again.
Setup
- Turn on USB debugging on your phone and connect it to a computer.
- Run the command below once. The app shows it with a copy button too.
- Pick your provider once in Settings, under Private DNS.
- Add the tile to Quick Settings.
$ adb shell pm grant dimitristerzz.dtutils android.permission.WRITE_SECURE_SETTINGS
Permissions
Write secure settings
RequiredWRITE_SECURE_SETTINGS
Private DNS is a secure setting. Android only lets an app change it after this one-time grant from a computer, never from a dialog on the phone.
One-time grant from a computer
In the app
- Tile switches betweenOff, Automatic, Custom
- Each tap moves to the next one. Pick at least two.
Good to know
- The tile skips Custom until you pick a provider in Settings.
- The grant survives app updates. Uninstalling the app removes it.