24#include <system_error>
26#include <unordered_map>
28#include <seastar/util/std-compat.hh>
30#include <seastar/core/future.hh>
31#include <seastar/core/sstring.hh>
32#include <seastar/core/shared_ptr.hh>
33#include <seastar/net/inet_address.hh>
55 std::vector<sstring> names;
57 std::vector<inet_address> addr_list;
60typedef std::optional<inet_address::family> opt_family;
63 unsigned short priority;
64 unsigned short weight;
82 std::optional<std::vector<inet_address>>
84 std::optional<std::chrono::milliseconds>
86 std::optional<uint16_t>
88 std::optional<std::vector<sstring>>
92 enum class srv_proto {
95 using srv_records = std::vector<srv_record>;
103 dns_resolver& operator=(dns_resolver&&) noexcept;
127 const sstring& service,
128 const sstring& domain);
147future<sstring> resolve_addr(
const inet_address&);
149future<std::vector<srv_record>> get_srv_records(dns_resolver::srv_proto proto,
150 const sstring& service,
151 const sstring& domain);
158 const std::error_category& error_category();
A representation of a possibly not-yet-computed value.
Definition: future.hh:1240
future< inet_address > resolve_name(const sstring &, opt_family={})
future< srv_records > get_srv_records(srv_proto proto, const sstring &service, const sstring &domain)
future< hostent > get_host_by_addr(const inet_address &)
future< hostent > get_host_by_name(const sstring &, opt_family={})
future< sstring > resolve_addr(const inet_address &)
Definition: inet_address.hh:50
holds the implementation parts of the metrics layer, do not use directly.
Seastar API namespace.
Definition: abort_on_ebadf.hh:26