Skip to content

Instantly share code, notes, and snippets.

@tosunkaya
Forked from sharunkumar/adb-dns.bat
Created April 5, 2022 22:36
Show Gist options
  • Save tosunkaya/a21d7564e91dbe8acb12a10f65b779f8 to your computer and use it in GitHub Desktop.
Save tosunkaya/a21d7564e91dbe8acb12a10f65b779f8 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment