From 9ce52957bf550a1743b34d097167e17692623da4 Mon Sep 17 00:00:00 2001 From: Dingjun Date: Tue, 8 Nov 2016 10:13:37 +0800 Subject: [PATCH] process the dns flags from https dns result --- httpdns.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httpdns.go b/httpdns.go index b6f569f..7ddf081 100644 --- a/httpdns.go +++ b/httpdns.go @@ -99,6 +99,11 @@ func (h *HTTPDns) Exchange(m *dns.Msg, addr string) (*dns.Msg, time.Duration, er } m1.Answer = append(m1.Answer, an) } + m1.Truncated = r.TC + m1.RecursionDesired = r.RD + m1.RecursionAvailable = r.RA + m1.AuthenticatedData = r.AD + m1.CheckingDisabled = r.CD return m1, 0, nil }