How To Enable Private DNS in Android with ADB

You can enable private dns of android on your tv boxes like xiaomi mi box or android emulators like bluestacks with ADB to block ads or something.

# 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

Related Posts