dns icon indicating copy to clipboard operation
dns copied to clipboard

Healthcheck fails when LISTENING_ADDRESS is anything except default

Open jnko266 opened this issue 7 months ago • 1 comments

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?

jnko266 avatar Apr 15 '25 13:04 jnko266

I'm not a Go developer, but think I narrowed it down to here, where the port 53 is hardcoded.

jnko266 avatar Apr 15 '25 13:04 jnko266

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.

qdm12 avatar Nov 05 '25 02:11 qdm12