PrivateDNSAndroid icon indicating copy to clipboard operation
PrivateDNSAndroid copied to clipboard

Auto switch back after set time

Open neurolizer opened this issue 3 months ago • 2 comments

Is your feature request related to a problem? Please describe.

When using private DNS primarily for ad blocking we occasionally need to turn it off temporarily, but forget to turn private DNS back on when we switch activities.

Describe the solution you'd like.

Provide an auto-revet setting that will allow Private DNS Quick Toggle to automatically switch back to the previous DNS setting after a set amount of time.

Describe alternatives you've considered.

No response

Additional context

No response

neurolizer avatar Aug 23 '25 18:08 neurolizer

I just wanted to say that I was searching this exact feature. I sometimes do have blocked something that is necessary for one thing, and I can't unblock it at DNS level as normally it should be turned on and blocked. So having a toggle like NordVPN with something like a turn off/auto for 5 minutes or 1 hour would really help.

Now I sometimes notice that I didn't turn it back on and don't have the benefits of the custom DNS. I haven't checked but I will try to create the solution myself and throw in a pull request if finished.

If someone else already made this please make it available!

GitStudying avatar Nov 06 '25 09:11 GitStudying

I have worked on this and have a basic version working with the pull request as seen in #61. When turning the feature on the app will save the current DNS and revert to that after the set amount of minutes (default 5). At least for me this is exactly what I needed. If other users expect different behavior or implementation, please describe it and if I or someone else has time that will likely be easy adjustments after this pull request/commit.

GitStudying avatar Nov 20 '25 11:11 GitStudying