Skip to main content

Securing DNS Queries in Mi Phones

I own a Xiomi smartphone which runs on android 9 (or Android Pie). One of the best features of Android 9 is inbuilt private DNS support. Means, now you can encrypt your DNS queries!

Why would I do that?

Freedom. Internet was meant to be free till governments, corporations and ISPs started restricting it, in the process, controlling which sites we can visit and which sites are out of reach. Many of these restrictions are implemented through DNS (There are other ways too). They look at your DNS query, see where you want to go, and stop you from going there because they don't want you to go there. If your DNS queries were encrypted, they won't be able to see where you want to go. They won't be able to stop you.

Privacy. Didn't I just tell you they won't be able to swoop in on your dns queries? Who here wants all of the internet to know which site you're visiting? Yeah, Not me.

Unfortunately, or conveniently, Mi has hidden and disabled the private DNS feature.

Thanks to nice folks over XDA, I was able to unravel that feature. Use it to unlock your DNS settings.

You have unlocked the feature! Now all you need a DNS server IP that can understand encrypted cries from your phone.

Cloudflare comes to the rescue. Use their magic to upgrade your DNS security.

That's it. You're done. But, that's not where the story ends. There are many other ways your ISP or your government can restrict your internet access. But for now, for this particular problem, you have a solution.

Copy & Share: