Caching DNS resolver static configuration.
More...
#include <userver/clients/dns/config.hpp>
Caching DNS resolver static configuration.
Definition at line 15 of file config.hpp.
◆ cache_failure_ttl
std::chrono::milliseconds clients::dns::ResolverConfig::cache_failure_ttl {std::chrono::seconds{5}} |
Network cache failure TTL.
Definition at line 41 of file config.hpp.
◆ cache_max_reply_ttl
std::chrono::milliseconds clients::dns::ResolverConfig::cache_max_reply_ttl {std::chrono::minutes{5}} |
Network cache upper reply TTL limit.
Definition at line 38 of file config.hpp.
◆ cache_size_per_way
size_t clients::dns::ResolverConfig::cache_size_per_way {256} |
Network cache size per way.
Definition at line 35 of file config.hpp.
◆ cache_ways
size_t clients::dns::ResolverConfig::cache_ways {16} |
Network cache ways.
Definition at line 32 of file config.hpp.
◆ file_path
std::string clients::dns::ResolverConfig::file_path {"/etc/hosts"} |
◆ file_update_interval
std::chrono::milliseconds clients::dns::ResolverConfig::file_update_interval {std::chrono::minutes{5}} |
hosts file update interval
Definition at line 20 of file config.hpp.
◆ network_attempts
int clients::dns::ResolverConfig::network_attempts {1} |
Network query attempts.
Definition at line 26 of file config.hpp.
◆ network_custom_servers
std::vector<std::string> clients::dns::ResolverConfig::network_custom_servers |
Custom name servers list (system-wide resolvers used if empty)
Definition at line 29 of file config.hpp.
◆ network_timeout
std::chrono::milliseconds clients::dns::ResolverConfig::network_timeout {std::chrono::seconds{1}} |
Network query timeout.
Definition at line 23 of file config.hpp.
The documentation for this struct was generated from the following file: