coredns/middleware/loadbalance
Miek Gieben 10db2a80df Cache (#126)
* Add middleware/cache

Add a caching middleware that caches nxdomain, nodata and successful
responses. It differentiates between DNSSEC on normal DNS replies.

Each reply is compress and scrubbed so it will fit the specific client
asking for it.

* first simple test, less exporting of stuff

* more

* Add middleware/cache

Add a caching middleware that caches nxdomain, nodata and successful
responses. It differentiates between DNSSEC on normal DNS replies.

Each reply is compressed and scrubbed so it will fit the specific client
asking for it. The TTL is decremented with the time spend in the cache.
There is syntax that allows you to cap the TTL for all records, no
matter what. This allows for a shortlived cache, just to absorb query
peaks.

+Tests

* cache test infrastructure

* Testing
2016-04-19 11:13:24 +01:00
..
handler.go Cache (#126) 2016-04-19 11:13:24 +01:00
loadbalance.go Add more logging 2016-04-05 07:37:05 +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