Hi there!

I’ve just released a new open-source Android app called DNS Toggle over on IzzyOnDroid (I’m still waiting for it to get added to F-Droid’s main repository).

The app adds a quick settings tile to easily toggle your phone’s private DNS setting on and off with a single tap!

For those who may not be familiar with this setting, one of the main uses for private DNS is content filtering (ad blocking or simply blocking dangerous domains for security) and better privacy (default DNS providers often track your activity). You can do this for more or less free using services like NextDNS.

The app is built to respect user privacy, so it doesn’t store, collect, or share any personal data. I’ve also built in some optional advanced features that you can access by long-pressing the tile:

  • Custom DNS:
    Set your own custom hostname for Private DNS (e.g., dns.adguard.com).
  • Wi-Fi Blocklist:
    Automatically disable private DNS when you connect to specific Wi-Fi networks. This comes in handy with public Wi-Fi networks (hotels, cafes, etc.) that rely on DNS tricks to serve a login page, which usually break when private DNS is enabled.
    You can even automate adding/removing Wi-Fi network names (SSIDs) from this list.
  • Hide App Icon:
    Because I hate having tons of apps I never actually need to open listed on my phone, I’ve made it so you can hide the app from the launcher drawer.

⚠️ Permission Required
To modify Private DNS system settings, this app requires the WRITE_SECURE_SETTINGS permission. You will be prompted to grant this on rooted devices If your device is not rooted, you can easily grant it manually using this ADB command:

adb shell pm grant com.ericlowry.dnstoggle android.permission.WRITE_SECURE_SETTINGS`

You can check out the source code over on GitHub or get it from IzzyOnDroid.

  • Im_old@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 天前

    amazing, thank you!

    Can I suggest you explain a bit more in detail the whitelist option please? Does it mean that the system should use the specified private dns only when connected to specific ssid?

    • RougeEric@lemmy.zipOP
      link
      fedilink
      arrow-up
      2
      ·
      3 天前

      It’s more of a “blacklist” that turns off (Automatic) private DNS when the phone connects to a WiFi with a stored SSID.

      Useful for networks that don’t play well with your private DNS.