***FROM** is the name to match for the request to be proxied.
***FROM** is the name to match for the request to be proxied.
***TO** is the destination endpoint to proxy to. At least one is required, but multiple may be specified. To may be an IP:Port pair, or may reference a file in resolv.conf format
***TO** is the destination endpoint to proxy to. At least one is required, but multiple may be
*`policy` is the load balancing policy to use; applies only with multiple backends. May be one of random, least_conn, or round_robin. Default is random.
specified. **TO** may be an IP:Port pair, or may reference a file in resolv.conf format
*`fail_timeout` specifies how long to consider a backend as down after it has failed. While it is down, requests will not be routed to that backend. A backend is "down" if CoreDNS fails to communicate with it. The default value is 10 seconds ("10s").
*`policy` is the load balancing policy to use; applies only with multiple backends. May be one of
*`max_fails` is the number of failures within fail_timeout that are needed before considering a backend to be down. If 0, the backend will never be marked as down. Default is 1.
random, least_conn, or round_robin. Default is random.
*`health_check` will check path (on port) on each backend. If a backend returns a status code of 200-399, then that backend is healthy. If it doesn't, the backend is marked as unhealthy for duration and no requests are routed to it. If this option is not provided then health checks are disabled. The default duration is 10 seconds ("10s").
*`fail_timeout` specifies how long to consider a backend as down after it has failed. While it is
***IGNORED_NAMES** is a space-separated list of domains to exclude from proxying. Requests that match none of these names will be passed through.
down, requests will not be routed to that backend. A backend is "down" if CoreDNS fails to
*`spray` when all backends are unhealthy, randomly pick one to send the traffic to. (This is a failsafe.)
communicate with it. The default value is 10 seconds ("10s").
*`protocol` specifies what protocol to use to speak to an upstream, `dns` (the default) is plain old DNS, and
*`max_fails` is the number of failures within fail_timeout that are needed before considering
`https_google` uses `https://dns.google.com` and speaks a JSON DNS dialect. Note when using this
a backend to be down. If 0, the backend will never be marked as down. Default is 1.
**TO** must be `dns.google.com`. The `grpc` option will talk to a server that has implemented the DnsService defined
*`health_check` will check path (on port) on each backend. If a backend returns a status code of
in https://github.com/miekg/coredns/middleware/proxy/pb/dns.proto.
200-399, then that backend is healthy. If it doesn't, the backend is marked as unhealthy for
duration and no requests are routed to it. If this option is not provided then health checks are
disabled. The default duration is 10 seconds ("10s").
***IGNORED_NAMES** in `except` is a space-separated list of domains to exclude from proxying.
Requests that match none of these names will be passed through.
*`spray` when all backends are unhealthy, randomly pick one to send the traffic to. (This is
a failsafe.)
*`protocol` specifies what protocol to use to speak to an upstream, `dns` (the default) is plain
old DNS, and `https_google` uses `https://dns.google.com` and speaks a JSON DNS dialect. Note when
using this **TO** will be ignored. The `grpc` option will talk to a server that has implemented
the [DnsService](https://github.com/miekg/coredns/middleware/proxy/pb/dns.proto).
An out-of-tree middleware that implements the server side of this can be found at