Skip to content

This tool adds dns entrys from docker containers to the pihole local dns config

Notifications You must be signed in to change notification settings

ASDFGamer/pihole-auto-dns

Repository files navigation

Pihole-Autoconfig

Important Info:
This project needs pihole v6 which is as of the time of writing still in development This means that is is possible, that the api was changed or a simpler option was added.

This project is intended to add dns entries from other docker-containers automatically to the pihole config. It is also possible to set some config options via this script that are helpful, when setting the dns entries.

A example docker-compose file and a example config file are this directory.

Quickstart

git clone git@github.com:ASDFGamer/pihole-auto-dns.git
docker compose build
docker compose up -d

After this you can change the config in the pihole_config.json and it gets applied every minute. You can also add the labels

pihole_config.local_dns.cname.domain=SERVICE_DOMAIN
pihole_config.local_dns.cname.target=CNAME_TARGET

to docker containers that should have a domain that is managed by pihole.

About

This tool adds dns entrys from docker containers to the pihole local dns config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published