@@ -22,16 +22,16 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
22
22
// Configuration for c-ares DNS resolver.
23
23
// [#next-free-field: 9]
24
24
message CaresDnsResolverConfig {
25
- // A list of dns resolver addresses.
26
- // :ref:`use_resolvers_as_fallback<envoy_v3_api_field_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig.use_resolvers_as_fallback>`
25
+ // A list of DNS resolver addresses.
26
+ // :ref:`use_resolvers_as_fallback <envoy_v3_api_field_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig.use_resolvers_as_fallback>`
27
27
// below dictates if the DNS client should override system defaults or only use the provided
28
28
// resolvers if the system defaults are not available, i.e., as a fallback.
29
29
repeated config.core.v3.Address resolvers = 1 ;
30
30
31
31
// If true use the resolvers listed in the
32
- // :ref:`resolvers<envoy_v3_api_field_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig.resolvers>`
32
+ // :ref:`resolvers <envoy_v3_api_field_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig.resolvers>`
33
33
// field only if c-ares is unable to obtain a
34
- // nameserver from the system (e.g., /etc/resolv.conf).
34
+ // nameserver from the system (e.g., `` /etc/resolv.conf`` ).
35
35
// Otherwise, the resolvers listed in the resolvers list will override the default system
36
36
// resolvers. Defaults to false.
37
37
bool use_resolvers_as_fallback = 3 ;
@@ -45,27 +45,36 @@ message CaresDnsResolverConfig {
45
45
// Configuration of DNS resolver option flags which control the behavior of the DNS resolver.
46
46
config.core.v3.DnsResolverOptions dns_resolver_options = 2 ;
47
47
48
- // This option allows for number of UDP based DNS queries to be capped. Note, this
49
- // is only applicable to c-ares DNS resolver currently.
48
+ // This option allows the number of UDP based DNS queries to be capped.
49
+ //
50
+ // .. note::
51
+ // This is only applicable to c-ares DNS resolver currently.
52
+ //
50
53
google.protobuf.UInt32Value udp_max_queries = 5 ;
51
54
52
55
// The number of seconds each name server is given to respond to a query on the first try of any given server.
53
56
//
54
- // Note: While the c-ares library defaults to 2 seconds, Envoy's default (if this field is unset) is 5 seconds.
55
- // This adjustment was made to maintain the previous behavior after users reported an increase in DNS resolution times.
57
+ // .. note::
58
+ // While the c-ares library defaults to 2 seconds, Envoy's default (if this field is unset) is 5 seconds.
59
+ // This adjustment was made to maintain the previous behavior after users reported an increase in DNS resolution times.
60
+ //
56
61
google.protobuf.UInt64Value query_timeout_seconds = 6 [(validate.rules ).uint64 = {gte : 1 }];
57
62
58
63
// The maximum number of query attempts the resolver will make before giving up.
59
64
// Each attempt may use a different name server.
60
65
//
61
- // Note: While the c-ares library defaults to 3 attempts, Envoy's default (if this field is unset) is 4 attempts.
62
- // This adjustment was made to maintain the previous behavior after users reported an increase in DNS resolution times.
66
+ // .. note::
67
+ // While the c-ares library defaults to 3 attempts, Envoy's default (if this field is unset) is 4 attempts.
68
+ // This adjustment was made to maintain the previous behavior after users reported an increase in DNS resolution times.
69
+ //
63
70
google.protobuf.UInt32Value query_tries = 7 [(validate.rules ).uint32 = {gte : 1 }];
64
71
65
72
// Enable round-robin selection of name servers for DNS resolution. When enabled, the resolver will cycle through the
66
73
// list of name servers for each resolution request. This can help distribute the query load across multiple name
67
74
// servers. If disabled (default), the resolver will try name servers in the order they are configured.
68
75
//
69
- // Note: This setting overrides any system configuration for name server rotation.
76
+ // .. note::
77
+ // This setting overrides any system configuration for name server rotation.
78
+ //
70
79
bool rotate_nameservers = 8 ;
71
80
}
0 commit comments