summaryrefslogtreecommitdiff
path: root/src/rpc/envoy.extensions.network.dns_resolver.cares.v3.rs
blob: 87205d892bd3282055889451afc4194b926f83ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// @generated
// This file is @generated by prost-build.
// \[#protodoc-title: c-ares DNS resolver\]
// \[#extension: envoy.network.dns_resolver.cares\]

/// Configuration for c-ares DNS resolver.
/// \[#next-free-field: 9\]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CaresDnsResolverConfig {
    /// A list of dns resolver addresses.
    /// :ref:`use_resolvers_as_fallback<envoy_v3_api_field_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig.use_resolvers_as_fallback>`
    /// below dictates if the DNS client should override system defaults or only use the provided
    /// resolvers if the system defaults are not available, i.e., as a fallback.
    #[prost(message, repeated, tag="1")]
    pub resolvers: ::prost::alloc::vec::Vec<super::super::super::super::super::config::core::v3::Address>,
    /// If true use the resolvers listed in the
    /// :ref:`resolvers<envoy_v3_api_field_extensions.network.dns_resolver.cares.v3.CaresDnsResolverConfig.resolvers>`
    /// field only if c-ares is unable to obtain a
    /// nameserver from the system (e.g., /etc/resolv.conf).
    /// Otherwise, the resolvers listed in the resolvers list will override the default system
    /// resolvers. Defaults to false.
    #[prost(bool, tag="3")]
    pub use_resolvers_as_fallback: bool,
    /// The resolver will query available network interfaces and determine if there are no available
    /// interfaces for a given IP family. It will then filter these addresses from the results it
    /// presents. e.g., if there are no available IPv4 network interfaces, the resolver will not
    /// provide IPv4 addresses.
    #[prost(bool, tag="4")]
    pub filter_unroutable_families: bool,
    /// Configuration of DNS resolver option flags which control the behavior of the DNS resolver.
    #[prost(message, optional, tag="2")]
    pub dns_resolver_options: ::core::option::Option<super::super::super::super::super::config::core::v3::DnsResolverOptions>,
    /// This option allows for number of UDP based DNS queries to be capped. Note, this
    /// is only applicable to c-ares DNS resolver currently.
    #[prost(message, optional, tag="5")]
    pub udp_max_queries: ::core::option::Option<super::super::super::super::super::super::google::protobuf::UInt32Value>,
    /// The number of seconds each name server is given to respond to a query on the first try of any given server.
    ///
    /// Note: While the c-ares library defaults to 2 seconds, Envoy's default (if this field is unset) is 5 seconds.
    /// This adjustment was made to maintain the previous behavior after users reported an increase in DNS resolution times.
    #[prost(message, optional, tag="6")]
    pub query_timeout_seconds: ::core::option::Option<super::super::super::super::super::super::google::protobuf::UInt64Value>,
    /// The maximum number of query attempts the resolver will make before giving up.
    /// Each attempt may use a different name server.
    ///
    /// Note: While the c-ares library defaults to 3 attempts, Envoy's default (if this field is unset) is 4 attempts.
    /// This adjustment was made to maintain the previous behavior after users reported an increase in DNS resolution times.
    #[prost(message, optional, tag="7")]
    pub query_tries: ::core::option::Option<super::super::super::super::super::super::google::protobuf::UInt32Value>,
    /// Enable round-robin selection of name servers for DNS resolution. When enabled, the resolver will cycle through the
    /// list of name servers for each resolution request. This can help distribute the query load across multiple name
    /// servers. If disabled (default), the resolver will try name servers in the order they are configured.
    ///
    /// Note: This setting overrides any system configuration for name server rotation.
    #[prost(bool, tag="8")]
    pub rotate_nameservers: bool,
}
// @@protoc_insertion_point(module)