/lookup

Proper host name lookup by IP on Windows

Primary LanguageGo

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