dns
dns copied to clipboard
Healthcheck fails when LISTENING_ADDRESS is anything except default
Hi!
I tried changing the LISTENING_ADDRESS (default to :53) to :5335, as I wanted to use this as upstream for PiHole, which would be exposed to clients at port 53, but if I change the LISTENING_ADDRESS, along with the CHECK_DNS variable set to on, the built-in Docker healthcheck fails and container gets marked as unhealthy (so the depends_on directive for other containers in docker-compose file is unusable)... Am I missing something here?
I'm not a Go developer, but think I narrowed it down to here, where the port 53 is hardcoded.
Please use the :v2.0.0-beta tag (see https://github.com/qdm12/dns/tree/v2.0.0-beta)
I just pushed a fix 3dd70e2fd194d6cb6b3ca63ab229b264269da06d so that you can now listen on any port (using LISTENING_ADDRESS=:54 for example).
Closing this, given the master branch / v1.x.x are unmaintained and to be replaced soon.