mirror of
https://github.com/coredns/coredns.git
synced 2025-11-16 17:02:16 -05:00
26 lines
497 B
Markdown
26 lines
497 B
Markdown
# health
|
|
|
|
This module enables a simple health check.
|
|
|
|
By default it will listen on port 8080.
|
|
|
|
Restarting CoreDNS will stop the health checking. This is a bug. Also [this upstream
|
|
Caddy bug](https://github.com/mholt/caddy/issues/675).
|
|
|
|
## Syntax
|
|
|
|
~~~
|
|
health
|
|
~~~
|
|
|
|
Optionally takes an address; the default is `:8080`. The health path is fixed to `/health`. It
|
|
will just return "OK" when CoreDNS is healthy.
|
|
|
|
This middleware only needs to be enabled once.
|
|
|
|
## Examples
|
|
|
|
~~~
|
|
health localhost:8091
|
|
~~~
|