coredns/middleware/loadbalance
2016-04-26 20:45:29 +01:00
..
handler.go Cache (#126) 2016-04-19 11:13:24 +01:00
loadbalance.go Some tiny changes and new benchmark test function (#136) 2016-04-26 20:45:29 +01:00
loadbalance_test.go Rename middleware/testing (#103) 2016-04-11 07:56:38 +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