mirror of
https://github.com/coredns/coredns.io.git
synced 2024-04-21 12:32:00 +00:00
This is slightly premature, but I wanted to update the loadbalance doc and push that out. We'll probably release 1.2.0 soon as well. Signed-off-by: Miek Gieben <miek@miek.nl>
879 B
879 B
+++ title = "loadbalance" description = "loadbalance randomize the order of A and AAAA records." weight = 18 tags = [ "plugin", "loadbalance" ] categories = [ "plugin" ] date = "2018-07-06T10:27:55.913620" +++
Description
The loadbalance will act 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, and only option, is "round_robin".
Examples
Load balance replies coming back from Google Public DNS:
. {
loadbalance round_robin
forward . 8.8.8.8 8.8.4.4
}