How weighted records work in GeoDNS
mainGeoDNS allows assigning a weight to records. If any records for a specific name/type have a weight, the system returns max_hosts records (default is 2).
- If all weights are
0, all matching records are returned. - Weights allow for probabilistic distribution. For example, if you have weights of 10, 20, 30, and 40 with
max_hostsset to 2, the record with weight 40 will be returned approximately 4 times more often than the record with weight 10. - Weights must be less than 2 billion.