coredns/middleware/loadbalance
Miek Gieben de0fa53379 Doc: add package docs (#296)
* Doc: add package docs

Add short package level docs to make godoc looks nicer.
Add some badges to the README.

* correct url
2016-09-25 08:39:20 +01:00
..
handler.go Golint2 (#280) 2016-09-23 09:14:12 +01:00
loadbalance.go Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
loadbalance_test.go Cleanup: put middleware helper functions in pkgs (#245) 2016-09-07 11:10:16 +01:00
README.md Update README.md 2016-08-22 14:25:19 -07:00
setup.go Cleanups and tests (#272) 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