Skip to content

Instantly share code, notes, and snippets.

@rwp0
Forked from sharunkumar/adb-dns.bat
Last active September 15, 2022 17:19
Show Gist options
  • Save rwp0/e01c48b77a73dbd21ea89f541941efcc to your computer and use it in GitHub Desktop.
Save rwp0/e01c48b77a73dbd21ea89f541941efcc to your computer and use it in GitHub Desktop.
Enabling / Disabling Private DNS in android via ADB
# to disable private dns
adb shell settings put global private_dns_mode off
# 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