LookupHost overloads
Declared in <netbase.h>
Resolve a host string to its first corresponding network address.
std::optional<CNetAddr>
LookupHost(
std::string const& name,
bool fAllowLookup,
DNSLookupFn dns_lookup_function = g_dns_lookup);
» more...
Resolve a host string to its corresponding network addresses.
std::vector<CNetAddr>
LookupHost(
std::string const& name,
unsigned int nMaxSolutions,
bool fAllowLookup,
DNSLookupFn dns_lookup_function = g_dns_lookup);
» more...
| Name | Description |
|---|---|
| name | The host name or numeric address to resolve. |
| fAllowLookup | Whether DNS lookups are permitted. |
| dns_lookup_function | The resolver used to perform the lookup. |
| nMaxSolutions | The maximum number of addresses to return; 0 means no limit. |
LookupHost(const std::string&, unsigned int, bool, DNSLookupFn) for additional parameter descriptions.
Lookup(const std::string&, uint16_t, bool, unsigned int, DNSLookupFn) for additional parameter descriptions.