Support hostnames and domains in PIHOLE_DNS_

This is a follow up to Start: Support hostnames and domains in PIHOLE_DNS_ by networkException · Pull Request #816 · pi-hole/docker-pi-hole · GitHub #docker

Currently the docker configuration does not allow for a hostname or domain in the pihole dns configuration. Technically DNS servers are never domains but in some cases the ip of a domain might want to be used as the DNS server. In particular a docker-compose stack would benefit from this feature:

        image: pihole/pihole
        hostname: pihole        
            - dnscrypt        
            - 53:53/udp
            PIHOLE_DNS_: dnscrypt

        image: #...

By resolving the ip of "dnscrypt" on startup, pihole could now use the dnscrypt container as a DNS server.

@PromoFaux Could you check this out?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

There is an upstream PR to dnsmasq which would implement this feature

1 Like