Skip to content

Instantly share code, notes, and snippets.

@bzkdjc
Forked from sharunkumar/adb-dns.bat
Created June 24, 2022 05:19
Show Gist options
  • Select an option

  • Save bzkdjc/ac9f91e8032bc3abe7fef566191b7707 to your computer and use it in GitHub Desktop.

Select an option

Save bzkdjc/ac9f91e8032bc3abe7fef566191b7707 to your computer and use it in GitHub Desktop.

Revisions

  1. @sharunkumar sharunkumar created this gist Feb 7, 2020.
    6 changes: 6 additions & 0 deletions adb-dns.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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