coredns/middleware/loadbalance
Miek Gieben 20e16491ec Add more logging
Put some more logging in CoreDNS.
2016-04-05 07:37:05 +01:00
..
handler.go Add roundrobin middleware 2016-03-23 21:38:35 +00:00
loadbalance.go Add more logging 2016-04-05 07:37:05 +01:00
loadbalance_test.go Cache elements of State 2016-04-04 08:19:06 +01:00
README.md middleware: change documentation filenames to README.md 2016-04-01 18:26:18 -04:00

loadbalance

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

It will take care to sort any CNAMEs before any address records.

Syntax

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

Examples

loadbalance round_robin