1

Private DNS - select mode

Allow selecting private DNS mode (off, automatic, or private DNS provider hostname).

I use adguard-dns.com private DNS to block most ads on my Pixel 6. However, some networks (e.g. BJ's wholesale club) block access to this DNS provider (or sometimes even Android's automatic private DNS) and only work if I temporarily turn off Private DNS while connected to that network and later turn it back on when I leave.

I'd  like to setup a profile that automatically turns off Private DNS when connected to specific networks that have this issue and turn it back on (with the already configured DNS host name) when I leave those networks.

2 replies

SR

Thank you Kyle - I didn't know I could use custom setting in this way.

KT

This is actually possible through Custom Setting action in Tasker.

Custom Setting > Global > "private_dns_mode" > The available options are " hostname" for on, "opportunistic" for automatic, and "off" to set it off. If you set it to "hostname", it'll use whatever private DNS was recently configured, if any. You can also specific the DNS hostname under Custom Setting > Global > "private_dns_specifier" > Name of private DNS. 

It's amazing what you can do with custom settings.