How to Setup Private DNS on Mi Box S 4K / Android TV Box with ADB over Wi-Fi

Hi, it’s been a long time since I was looking for an easy way to set up Private DNS on Mi Box S 4K and finally I’ve found it. We will be using an Android phone to connect Mi Box and set up the Private DNS.

What we need:
  1. Android Phone (No PC required).
  2. Remote ADB Shell app from PlayStore.
  3. DNS-over-TLS (DoT) Address. I suggest using one with Filtered ads, trackers, malware, CNAME Cloacking prevention etc. like NextDNSBlahDNSAdGuard DNS.
  4. Phone and Mi Box are connected to the same Wi-Fi network.
  1. Activate ADB from Mi Box. Tap Menu button on the remote and go to Settings / Device Preferences / About / Status / Build and click on it se7en times until you see “You are developer now” notification.
  2. Go back to Menu and go to Settings / Device Preferences / Developer Options and turn on USB debugging.
  3. Grab your phone and install Remote ADB Shell from PlayStore.
  4. Run the app and type the IP of your Mi Box. Usually like 192.168.1.x (replace X with your Mi Box’s last digit(s)).
  5. Allow the connection from Mi Box remote, you’ll see a popup on the TV.
  6. Copy and paste the codes step 7 and 8, one at a time. If you use NextDNS, make sure to replace 6 chars Configuration ID (123456) with your own Configuration ID at the beginning of DNS address. You can find your ID by going, it’ll redirected to Setup page (make sure you are logged in, otherwise it’ll create a new temporary account that will expire 3 days later), Under Endpoints section from top left of the page, you can copy your full DoT address next to DNS-over-TLS/QUIC. Optional for NextDNS: You can attach a device name to the DNS (with the format below) and can see it in NextDNS Analytics page. It is useful if you have multiple devices. Sample:
  7. settings put global private_dns_mode hostname
  8. settings put global private_dns_specifier
  9. Deactivate Developer Options by going Settings / Device Preferences / Developer Options and click Enable developer options toggle.
Disable Private DNS:
  1. Follow steps 1 to 6 and type / copy paste:
  2. settings put global private_dns_mode off
  3. Deactivate Developer Options by going Settings / Device Preferences / Developer Options and click Enable developer options toggle.

Remote ADB Shell cannot connect? Try to select “MTP” from Select USB Configuration, the default value is “Charging“. Some user reports claim this step is required for Mi Box to enable port 5555 otherwise ADB connection will fail. But it worked with default value “Charging” for me. This change might be required if you connect your Box to your PC with a USB Cable.

ADB Shell throws permission errors? Go to Settings / Device Preferences / Developer Options and select Revoke USB debugging authorizations and try again.

Alternative Solutions by Windows or Using App

It’s not available on the Mi Box settings. Majority of the Android TV doesn’t have the native Private DNS enabled on their UI. You have to go ADB for this or through a 3rd party app.

You have two options to do this:

  1. Through ADB to enable Private DNS (Compatible with VPN apps)
  2. Through Nebulo DNS (Not compatible with VPN apps)

Here’s how you can do it for both Options.

  • Through ADB

5/53526 oy

Emre Tosunkaya

Kendini İnternete adamış bir tekno kişi. Teknoloji ve İnternet adına; WordPress, Webmaster, Android, Google, mobil, oyun, yazılım hakkında insanlara yararlı makaleler yazar.

  • İndirim Kuponları
  • Uzman Diyetisyen Semiye Tosunkaya
  • Güzel Hosting, 2008'den beri kaliteli ve ekonomik paylaşımlı hosting, kiralık sunucu, sanal sunucu ve co-location hizmetleri sağlamaktadır.
  • Turhost: Türkiye'nin Lider Hosting ve Domain Servis Sağlayıcısı
  • - Alışverişin Uğurlu Adresi
  • En Trend Ürünler Türkiye'nin Online Alışveriş Sitesi Amazon'da İndirim Kuponları Binance %10 Komisyon İndirimi TRBinance %10 Komisyon İndirimi Amazon Amazon 50₺ indirim kodu Trendyol Güncel İndirim Kodları