This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Update Pihole's custom.list based on the "hostname" property of a container. | |
| # | |
| # Environment variables | |
| # - OVERRIDE_IP sets the IP of the container in Pihole's DNS records. Defaults to container IP in Docker network. | |
| # - DOMAIN_FILTER only triggers the updates on a match. If empty, it'll always update the records file. | |
| # - PIHOLE_CUSTOM_LIST_FILE /etc/hosts compatible DNS records file in format "IP hostname". | |
| # - PIHOLE_CONTAINER_NAME because we need to reload Pihole's internal resolver when making changes | |
| # |