Files
coredns/middleware/loadbalance
Jonathan Dickinson 7ce7100122 - Adding tests for MX round-robin (#358)
- Implementing MX round-robin
- Slight tidy
2016-10-27 08:09:16 +01:00
..
2016-10-26 10:01:52 +01:00
2016-09-19 11:26:00 +01:00

loadbalance

loadbalance acts as a round-robin DNS loadbalancer by randomizing the order of A and AAAA records in the answer. See Wikipedia about the pros and cons on this setup.

It will take care to sort any CNAMEs before any address records, because some stub resolver implementations (like glibc) are particular about that.

Syntax

loadbalance [POLICY]
  • POLICY is how to balance, the default is "round_robin"

Examples

loadbalance round_robin