#include <userver/clients/dns/component.hpp>
Caching DNS resolver component.
Returned references to clients::dns::Resolver live for a lifetime of the component and are safe for concurrent use.
| Name | Description | Default value | 
|---|---|---|
| fs-task-processor | task processor for disk I/O operations | - | 
| hosts-file-path | path to the hosts file    | /etc/hosts | 
| hosts-file-update-interval | hosts file cache reload interval    | 5m | 
| network-timeout | timeout for network requests | 1s | 
| network-attempts | number of attempts for network requests | 1 | 
| network-custom-servers | list of name servers to use | from /etc/resolv.conf     | 
| cache-ways | number of ways for network cache | 16 | 
| cache-size-per-way | size of each way of network cache | 256 | 
| cache-max-reply-ttl | TTL limit for network replies caching | 5m | 
| cache-failure-ttl | TTL for network failures caching | 5s | 
Definition at line 42 of file component.hpp.
 Inheritance diagram for clients::dns::Component:
 Collaboration diagram for clients::dns::Component:Public Member Functions | |
| Component (const components::ComponentConfig &, const components::ComponentContext &) | |
| Resolver & | GetResolver () | 
  Public Member Functions inherited from components::LoggableComponentBase | |
| LoggableComponentBase (const ComponentConfig &, const ComponentContext &) | |
| LoggableComponentBase (LoggableComponentBase &&)=delete | |
| LoggableComponentBase (const LoggableComponentBase &)=delete | |
| ~LoggableComponentBase () override=default | |
| ComponentHealth | GetComponentHealth () const override | 
| void | OnLoadingCancelled () override | 
| void | OnAllComponentsLoaded () override | 
| void | OnAllComponentsAreStopping () override | 
Static Public Member Functions | |
| static yaml_config::Schema | GetStaticConfigSchema () | 
  Static Public Member Functions inherited from components::LoggableComponentBase | |
| static yaml_config::Schema | GetStaticConfigSchema () | 
Static Public Attributes | |
| static constexpr std::string_view | kName = "dns-client" | 
| The default name of clients::dns::Component component.   | |