DEV Community

Kai Boschung for Experts Inside

Posted on

Automated Pi-Hole setup in Azure

The whole concept behind Pi-Hole got me hooked: A DNS sinkhole that blocks traffic I don't want (trackers, malware, etc.). And this can be done for the whole network if you set the upstream DNS server on your router to the Pi-Hole instance. So, no add blocker needed anymore.

Disclaimer: I was not able to get it working... I got the same error discussed in this thread. So, if any skilled linuxer can fix it. I'd be glad!

The instance is quickly set up in Azure thanks to this article:

I went a little further and extended the script to replace yaml placeholders via PowerShell. Line 30 to 45 shows how the replacement is done.

The whole gist including the yaml input file is available here.

More posts on my blog: https://engineerer.ch/

Top comments (0)