Original topic:

Feature request: Change Private DNS settings with routines

(Topic created: 06-02-2025 12:39 PM)
4097 Views
PietPiraat
Asteroid
Options
Galaxy S Phones

Hello,

I would like to be able to change the private dns settings of my phone depending on whether I am connected to my home WiFi or not. It doesn't seem like there is an option to do this.

The routine would be:

If -> Connected to home WiFi
Then -> Set Private DNS to off

 

If -> Disconnected from home WiFi
Then -> Set Private DNS hostname: customprovider.dns.something

4 Replies
realaud
Honored Contributor
Options
Galaxy S Phones

You might try the Connect/disconnect from a VPN after adding a VPN to the advanced connection settings.  It really is odd that they have an actual setting for a private DNS server, but not an action in routines.


-------------------------------------------------------------
Please mark any response that helped you as your solution.
-------------------------------------------------------------
0 Likes
meself
Honored Contributor
Options
Galaxy S Phones
As far as I know its for one setting
0 Likes
tango_fox
Constellation
Options
Galaxy S Phones

This is a very good point. Currently, thereโ€™s no way to automate turning Private DNS on or off based on your Wiโ€‘Fi connection in One UI โ€” but this kind of functionality already exists in iOS.

On iOS and macOS, you can create profiles with โ€œOnDemandRulesโ€ that enable or disable encrypted DNS depending on the connected SSID. This lets you use your own DNS (like AdGuard Home or a local cache) when youโ€™re at home and revert back to encrypted DNS when youโ€™re elsewhere.

Technically, a similar implementation in Samsungโ€™s Modes & Routines could work like this:

  • If connected to a specified SSID (like your home Wiโ€‘Fi) โ†’ set Private DNS to Off or Automatic (so your phone can use the routerโ€™s DNS).
  • If disconnected or connected to a different network โ†’ enable Private DNS with a custom hostname (such as NextDNS or Quad9).

This would enable greater flexibility and control, while retaining the ability to protect DNS requests outside the home.

Such a feature would align with growing user preferences for both performance and privacy โ€” depending on their network โ€” without requiring manual intervention each time.

Euph0rik9
Constellation
Options
Galaxy S Phones

Great suggestion, because Private DNS should be an option with the default Routines. But I was able to achieve this by installing Routines+ in Good Lock, then created a Routine based on the Routines+ Touch Macro (which basically records your screen touches) by selecting the Settings app then recording the screen taps to navigate to Connections > More connection settings > Private DNS > Off (when connected to my home WiFi).  Then setup a similar Routine for when the home WiFi is disconnected to enable Private DNS.

0 Likes