1
0
Fork
You've already forked secure-dns
0
(Mirror) A dockerized setup for Pihole (ad block) + Mullvad DNS (DoH) upstream (cloudflared). https://sr.ht/~quaff/secure-dns
2026年05月11日 21:33:43 -07:00
config New pihole version breaks dnssec; disabling. 2026年05月11日 21:33:43 -07:00
.env.example Back to using unbound for recursive DNS. Dropped cloudflared. 2025年12月16日 14:49:25 -08:00
.gitignore Back to using unbound for recursive DNS. Dropped cloudflared. 2025年12月16日 14:49:25 -08:00
docker-compose.yml New pihole version breaks dnssec; disabling. 2026年05月11日 21:33:43 -07:00
LICENSE Add LICENSE 2021年02月05日 01:06:33 +00:00
README.md Back to using unbound for recursive DNS. Dropped cloudflared. 2025年12月16日 14:49:25 -08:00

Secure DNS

Overview

A dockerized setup for Pihole (ad block) + unbound (recursive mode).

Requirements

  • docker
  • docker-compose

Setup (Linux & macOS)

Clone this repo on the computer you want to use as a secure DNS server.

Copy .env.example to .env and make the appropriate changes.

To start up, run

docker compose up -d

Now you can change your router/device DNS to the server IP.

Updating .env

After making changes to .env you'll need to restart the docker network.

docker compose down && docker compose up -d

Auto start (Linux + macOS)

Add the following to your crontab:

@reboot /bin/bash -c "cd <working_path-secure-dns>/ && docker compose up -d"

Upgrading

To upgrade pihole when there's new releases run (make sure you run the upgrade while secure-dns is running):

docker compose pull && docker compose up -d

This will pull the latest docker images, build then restart the affected containers.

Using secure-dns as your DNS resolver

Once secure-dns is up and running, change your DNS to 127.0.0.1. You're done!

Test your connection for leaks.

Because we're in recursive mode, the only result should be your server's IP.

Auto upgrade with Pullio

If you'd rather not think about upgrading, you can install pullio, and secure-dns should be supported.

Just make sure you watch out for breaking changes.

Attribution

Software

pi-hole/pi-hole

pi-hole/docker-pi-hole

nlnetlabs/unbound

madnuttah/unbound-docker

hotio/pullio

Docker images

pihole/pihole

madnuttah/unbound-docker

Guides

Pi-hole + Unbound using Docker