mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 01:14:23 +00:00
Editorialize the comment re: UDPAnswerLimit
Prodded by: slackpad & fusiondog
This commit is contained in:
parent
5ba7e74bb8
commit
19721f5c3d
@ -81,11 +81,15 @@ type DNSConfig struct {
|
|||||||
// Records returned in the ANSWER section of a DNS response. This is
|
// Records returned in the ANSWER section of a DNS response. This is
|
||||||
// not normally useful and will be limited based on the querying
|
// not normally useful and will be limited based on the querying
|
||||||
// protocol, however systems that implemented §6 Rule 9 in RFC3484
|
// protocol, however systems that implemented §6 Rule 9 in RFC3484
|
||||||
// may want to set this to 1 in order to achieve round-robin DNS.
|
// may want to set this to `1` in order to subvert §6 Rule 9 and
|
||||||
|
// re-obtain the effect of randomized resource records (i.e. each
|
||||||
|
// answer contains only one IP, but the IP changes every request).
|
||||||
// RFC3484 sorts answers in a deterministic order, which defeats the
|
// RFC3484 sorts answers in a deterministic order, which defeats the
|
||||||
// purpose of round-robin DNS. This RFC has been obsoleted by
|
// purpose of randomized DNS responses. This RFC has been obsoleted
|
||||||
// RFC6724, however a large number of Linux hosts using glibc(3)
|
// by RFC6724 and restores the desired behavior of randomized
|
||||||
// implemented §6 Rule 9 (e.g. CentOS 5-6, Debian Squeeze, etc).
|
// responses, however a large number of Linux hosts using glibc(3)
|
||||||
|
// implemented §6 Rule 9 and may need this option (e.g. CentOS 5-6,
|
||||||
|
// Debian Squeeze, etc).
|
||||||
UDPAnswerLimit int `mapstructure:"udp_answer_limit"`
|
UDPAnswerLimit int `mapstructure:"udp_answer_limit"`
|
||||||
|
|
||||||
// MaxStale is used to bound how stale of a result is
|
// MaxStale is used to bound how stale of a result is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user