Windows API reference

gethostbyname

Legacy resolver that returns host information for a name.

Library
Ws2_32.dll
Suspicion
high

Detection summary

gethostbyname maps to Sysmon Event 22 and Microsoft-Windows-DNS-Client; these events record the OS effect, not the API call.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Browsers, games, IM clients, IT tooling and updaters.

Open gethostbyname in the interactive atlas