On Tue, Oct 11, 2016 at 3:56 PM, <[email protected]> wrote:

> I'm new to Go so please forgive the newbie question.
>
> Is there a way with one of the Go libraries which will indicate which name
> server is responding to a host lookup request ?
>
> I have looked at the dns and net libraries but I have not found a function
> that will return the name server responding.
>

Have you tried: https://github.com/miekg/dns

I think it's the Authority field, though it might not be accurate (possible
MITM) unless you're using DNSSEC.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to