plugin/loadbalance: add parse and tests (#1947)

Automatically submitted.
This commit is contained in:
Miek Gieben
2018-07-06 22:49:21 +01:00
committed by corbot[bot]
parent bcc749db04
commit 7c41f2ce9f
4 changed files with 71 additions and 16 deletions

View File

@@ -2,12 +2,12 @@
## Name
*loadbalance* - randomize the order of A and AAAA records.
*loadbalance* - randomize the order of A, AAAA and MX records.
## Description
The *loadbalance* will act as a round-robin DNS loadbalancer by randomizing the order of A and AAAA
records in the answer.
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](https://en.wikipedia.org/wiki/Round-robin_DNS) about the pros and cons on this
setup. It will take care to sort any CNAMEs before any address records, because some stub resolver