[#LookupHost-0b]
= LookupHost
:mrdocs:

Resolve a host string to its corresponding network addresses&period;

== Synopsis

Declared in `&lt;netbase&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::vector&lt;CNetAddr&gt;
LookupHost(
    std::string const& name,
    unsigned int nMaxSolutions,
    bool fAllowLookup,
    xref:DNSLookupFn.adoc[DNSLookupFn] dns&lowbar;lookup&lowbar;function = g&lowbar;dns&lowbar;lookup);
----

== Return Value

The resulting network addresses to which the specified host string resolved&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The string representing a host&period; Could be a name or a numerical IP address (IPv6 addresses in their bracketed form are allowed)&period;
| *nMaxSolutions*
| The maximum number of addresses to return&semi; 0 means no limit&period;
| *fAllowLookup*
| Whether DNS lookups are permitted&period;
| *dns&lowbar;lookup&lowbar;function*
| The resolver used to perform the lookup&period;
|===

== See Also

Lookup(const std&colon;&colon;string&amp;, uint16&lowbar;t, bool, unsigned int, DNSLookupFn) for additional parameter descriptions&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
