Skip to content

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

  1. Turn on USB debugging on your phone and connect it to a computer.
  2. Run the command below once. The app shows it with a copy button too.
  3. Pick your provider once in Settings, under Private DNS.
  4. Add the tile to Quick Settings.

$ adb shell pm grant dimitristerzz.dtutils android.permission.WRITE_SECURE_SETTINGS

Permissions

  • Write secure settings

    Required

    WRITE_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.