Debian Codegraph @

cmd/atomdns/handlers/random/README.md

raw
1 # Name
2
3 _random_ - randomizes the order of address records
4
5 # Description
6
7 The _random_ handler will act as a "load balancer" by randomizing the order of address (A/AAAA) records in the
8 answer section.
9
10 See [Wikipedia](https://en.wikipedia.org/wiki/Round-robin_DNS) about the pros and cons of this setup. It will
11 take care to sort any CNAMEs before any address records, because some stub resolver implementations (like
12 glibc) are particular about that.
13
14 # Syntax
15
16 ```txt
17 random [POLICY]
18 ```
19
20 - **POLICY** is the policy to use, when not given it defaults to `random`.