sameersbn / docker-bind

Dockerize BIND DNS server with webmin for DNS administration
MIT License
913 stars 333 forks source link

health_check #102

Open my1990 opened 4 years ago

my1990 commented 4 years ago

How to do health check? Is there an interface?

noel-jackson commented 4 years ago

I added this to the Dockerfile

HEALTHCHECK CMD dig +norecurse +short +retry=0 @127.0.0.1 $TEST_HOST || exit 1

and then set the TEST_HOST variable on the container to a host name that bind should be able to resolve. If TEST_HOST is not set then dig returns the root servers.

Perhaps this can be adjusted to be of some use.