Is there a way to specify which DNS server to use for a name lookup?
Looking at https://golang.org/pkg/net/#LookupHost seems it will use only the local resolver
LookupHost looks up the given host using the local resolver. It returns a slice
of that host's addresses.
Also earlier on that link
It can use a pure Go resolver that sends DNS requests directly to
the servers listed in /etc/resolv.conf,
How could one do a lookup against arbitrary servers like one can do with dig?
dig @8.8.8.8 google.com