mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Docs (#1943)
* Doc updates Make the name section fit on one line. Signed-off-by: Miek Gieben <miek@miek.nl> * Regen docs Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -2,14 +2,16 @@
|
||||
|
||||
## Name
|
||||
|
||||
*loadbalance* - acts as a round-robin DNS loadbalancer by randomizing the order of A and AAAA records
|
||||
in the answer.
|
||||
*loadbalance* - randomize the order of A and AAAA records.
|
||||
|
||||
## Description
|
||||
|
||||
The *loadbalance* will act as a round-robin DNS loadbalancer by randomizing the order of A and AAAA
|
||||
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
|
||||
implementations (like glibc) are particular about that.
|
||||
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
|
||||
implementations (like glibc) are particular about that.
|
||||
|
||||
## Syntax
|
||||
|
||||
@@ -17,7 +19,7 @@
|
||||
loadbalance [POLICY]
|
||||
~~~
|
||||
|
||||
* **POLICY** is how to balance, the default is "round_robin"
|
||||
* **POLICY** is how to balance, the default, and only option, is "round_robin".
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -26,6 +28,6 @@ Load balance replies coming back from Google Public DNS:
|
||||
~~~ corefile
|
||||
. {
|
||||
loadbalance round_robin
|
||||
proxy . 8.8.8.8 8.8.4.4
|
||||
forward . 8.8.8.8 8.8.4.4
|
||||
}
|
||||
~~~
|
||||
|
||||
Reference in New Issue
Block a user