Skip to content
Script to auto install & configure Android Private DNS For Pi-Hole
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Removed Unwanted Files Jan 11, 2020
assets updated Jan 11, 2020
.gitattributes Initial commit Jan 11, 2020
.gitignore Initial commit Jan 11, 2020
LICENSE Initial commit Jan 11, 2020 Update Jan 11, 2020

Pi-Hole Android Private DNS Installer

I came across Pi-hole about a year ago, and have been using it on and off since then for small projects.

A few months ago I decided to use it for private DNS, but the compatibility with Android Private DNS was not widely available or effective. I spent many hours searching over the internet, piecing together code from various sources and testing it.

I am finally happy to say that I am able to create a working piece of code for Android Private DNS!

As a member of the open source community, I would like to give back, and am posting the code here for use by fellow members. I am sure there are at least a few members out there who may have need for this code.


  1. Ubuntu / Debain Based (Any Version)
  2. Pi-Hole Installed With Web Server
  3. Allow The Following Ports in TCP (80,443,853)

Note I dont use Raspberry Pi to run Pi-Hole so i was not able to test. but the same steps are required for it.


This is a simple script which requires 2 arguments

  1. Domain Name To Run Android Private DNS Service
  2. Email To Share with letsencrypt to get an SSL For Android Private DNS
sudo wget
sudo bash {domain_name} {email_for_letsencrypt}

Example Run sudo bash


If you would like to help, please take a look at the list of issues or the To Do checklist.


This project is licensed under General Public License v3.0 license. See the LICENSE file for more info.


2017 - 2020 Varun Sridharan,

If you find it useful, let me know 😉

You can contact me on Twitter or through my email.

Backed By

DigitalOcean JetBrains Tidio Chat Cloudron
You can’t perform that action at this time.