Skip to content

Instantly share code, notes, and snippets.

@sharunkumar
Created February 7, 2020 07:08
Show Gist options
  • Save sharunkumar/b6195cbbd26a0039ec87fbd3829aa6b3 to your computer and use it in GitHub Desktop.
Save sharunkumar/b6195cbbd26a0039ec87fbd3829aa6b3 to your computer and use it in GitHub Desktop.
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@Mondei1
Copy link

Mondei1 commented Jun 30, 2024

Btw, thank you for this small gist. It helped me to resolve an issue I had on my Quest 3: https://www.reddit.com/r/OculusQuest/comments/1drpihc/quest_3_constant_wifi_reconnects_but_with/

The WiFi was reconnecting the entire time because of some weird IPv6 DNS issue. Setting a private DNS this way (because the UI doesn't support it) resolved the issue somehow 🤷

@deltaxsingh
Copy link

Awesome thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment