Skip to content

Instantly share code, notes, and snippets.

@JabZar
JabZar / adb-dns.bat
Last active February 3, 2024 20:19 — forked from sharunkumar/adb-dns.bat
Enabling / Disabling private DNS in android via ADB
rem From a command line on the computer:
adb tcpip 5555
adb connect 192.168.0.101:5555
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