VB6 Lookup Hostname From IP, Specifying DNS Server
问题 I know how to look up a hostname from an IPv4 in VB using the GetHostByAddr Windows API call (this works great). However, that function does not allow one to specify the DNS server to use. Sometimes the default company DNS servers are fine, but other times I need to specify an external DNS server for lookups, and I don't think doing a shell nslookup and parsing the output is the best method, here. Note: this is actually going to be used as VBA code in an Excel workbook to help someone else do