10USERVER_NAMESPACE_BEGIN
12namespace clients::dns {
15struct ResolverConfig {
17 std::string file_path{
"/etc/hosts"};
20 std::chrono::milliseconds file_update_interval{std::chrono::minutes{5}};
23 std::chrono::milliseconds network_timeout{std::chrono::seconds{1}};
26 int network_attempts{1};
29 std::vector<std::string> network_custom_servers;
32 size_t cache_ways{16};
35 size_t cache_size_per_way{256};
38 std::chrono::milliseconds cache_max_reply_ttl{std::chrono::minutes{5}};
41 std::chrono::milliseconds cache_failure_ttl{std::chrono::seconds{5}};