Files
coredns.io/content/plugins/loadbalance.md
T
Miek GiebenandGitHub 4f7a3ee90f 1.2.0 release blog (#98)
* 1.2.0 release blog

Signed-off-by: Miek Gieben <miek@miek.nl>

* slightly better

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-07-11 11:29:17 +01:00

887 B

+++ title = "loadbalance" description = "loadbalance randomize the order of A, AAAA and MX records." weight = 18 tags = [ "plugin", "loadbalance" ] categories = [ "plugin" ] date = "2018-07-11T10:14:28.435776" +++

Description

The loadbalance will act as a round-robin DNS loadbalancer by randomizing the order of A, AAAA, and MX 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
}