GetDNSLookup

The GetDNSLookup function returns IP and DNS information on IP address or domain name addresses.

function GetDNSLookup(
lpDnsLookupInfo: pDNSLOOKUPINFO
): WORD; stdcall;

Parameters

lpDnsLookupInfo
[in/out] Specifies the DNS lookup record with IP and/or DNS information.

Return Values

Return any one of the following values on error, otherwise ERROR_SUCCESS on success.

Value Meaning
ERROR_BADSIZE The structure size was incorrect.
ERROR_UNKNOWNDNSSERVER Could not lookup the DNS server, or unresolveable.
ERROR_INVALIDIP IP address to lookup is invalid.

Remarks

none.

Requirements

Network Statistics 1.2 Full
Header: declared in tnstat.pas.
Header: declared in nstatdll.pas.
Library: nstat.dll

See Also

Network Statistics Function Reference, DNSLOOKUPINFO


Send questions and comments to:
support@hplsoft.com
© 2002, HPL Software