Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 515 Bytes

File metadata and controls

16 lines (10 loc) · 515 Bytes

Proper host name lookup by IP on Windows

This package provides LookupAddr function based on GetNameInfoW instead of DnsQuery used in Go standard library. Use this one if net.LookupAddr cannot resolve your IP.

Windows-only

Usage:

host, err := lookup.LookupAddr("8.8.8.8")

Installing

go get github.com/postromantic/lookup