[#LookupHost-0b] = LookupHost :mrdocs: Resolve a host string to its corresponding network addresses. == Synopsis Declared in `<netbase.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<CNetAddr> LookupHost( std::string const& name, unsigned int nMaxSolutions, bool fAllowLookup, xref:DNSLookupFn.adoc[DNSLookupFn] dns_lookup_function = g_dns_lookup); ---- == Return Value The resulting network addresses to which the specified host string resolved. == Parameters [cols="1,4"] |=== | Name| Description | *name* | The string representing a host. Could be a name or a numerical IP address (IPv6 addresses in their bracketed form are allowed). | *nMaxSolutions* | The maximum number of addresses to return; 0 means no limit. | *fAllowLookup* | Whether DNS lookups are permitted. | *dns_lookup_function* | The resolver used to perform the lookup. |=== == See Also Lookup(const std::string&, uint16_t, bool, unsigned int, DNSLookupFn) for additional parameter descriptions. [.small]#Created with https://www.mrdocs.com[MrDocs]#