diff --git a/msg.go b/msg.go index d5400be0..4a9a49a1 100644 --- a/msg.go +++ b/msg.go @@ -81,7 +81,8 @@ type MsgHdr struct { type Msg struct { MsgHdr Compress bool // If true, the message will be compressed when converted to wire format. - Rtt time.Duration // Round Trip Time, time it took between sending a reply and receiving the answer. + Rtt time.Duration // Round Trip Time, time it took between sending a reply and receiving the answer. Only valid for clients. + RemoteAddr net.Addr // The remote address. Either the server or the client connecting. Question []Question // Holds the RR(s) of the question section. Answer []RR // Holds the RR(s) of the answer section. Ns []RR // Holds the RR(s) of the authority section.