From fae47083c2d93b47a1a95741abfaa0cae770eb63 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 6 Feb 2019 19:41:55 +0100 Subject: [PATCH] set response bit in dns --- proxy/dns/dns.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy/dns/dns.go b/proxy/dns/dns.go index 6081fe7f5..653a3c678 100644 --- a/proxy/dns/dns.go +++ b/proxy/dns/dns.go @@ -212,8 +212,9 @@ func (h *Handler) handleIPQuery(id uint16, qType dnsmessage.Type, domain string, b := buf.New() rawBytes := b.Extend(buf.Size) builder := dnsmessage.NewBuilder(rawBytes[:0], dnsmessage.Header{ - ID: id, - RCode: dnsmessage.RCodeSuccess, + ID: id, + RCode: dnsmessage.RCodeSuccess, + Response: true, }) builder.StartAnswers()