Sunday, November 23, 2025

How to set dns.adguard.com as Private DNS in Bluestack 5

 - First download Adb tool from here : Android Debug Bridge (adb). Extract the file after the download completed. 

- Open cmd inside the adb folder.

- Enable adb debugging in Bluestack setting, then connect adb to Bluestack 5 :
adb connect 127.0.0.1:5555
adb devices

- Make sure you see 127.0.0.1:5555 device. 

- Set AdGuard as Private DNS hostname (DoT)  :
adb -s 127.0.0.1:5555 shell settings put global private_dns_mode hostname
adb -s 127.0.0.1:5555 shell settings put global private_dns_specifier dns.adguard.com

- Confirm values:
adb -s 127.0.0.1:5555 shell settings get global private_dns_mode
adb -s 127.0.0.1:5555 shell settings get global private_dns_specifier

- If it shows "hostname" and "dns.adguard.com", then it's working correctly. 

- If you want to disable dns.adguard.com, run this command with adb :
adb -s 127.0.0.1:5555 shell settings put global private_dns_mode off

- If you ever want it fully clean (no leftover values), you can optionally also run: :
adb -s 127.0.0.1:5555 shell settings put global private_dns_mode off
adb -s 127.0.0.1:5555 shell settings delete global private_dns_specifier

No comments:

Post a Comment