mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
This middleware allows you to round robin a/aaaa records in a reply and maybe more in the future (i.e.) sort a packet?
20 lines
365 B
Markdown
20 lines
365 B
Markdown
# loadbalance
|
|
|
|
`loadbalance` acts as a round-robin DNS loadbalancer by randomizing A and AAAA records in the
|
|
message. See [Wikipedia](https://en.wikipedia.org/wiki/Round-robin_DNS) about the pros and cons
|
|
on this setup.
|
|
|
|
## Syntax
|
|
|
|
~~~
|
|
loadbalance [policy]
|
|
~~~
|
|
|
|
* policy is how to balance, the default is "round_robin"
|
|
|
|
## Examples
|
|
|
|
~~~
|
|
loadbalance round_robin
|
|
~~~
|