Skip to content

Commit

Permalink
set recursive bits
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Feb 15, 2019
1 parent b2bb5a1 commit b488c42
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions proxy/dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,12 @@ 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,
Response: true,
ID: id,
RCode: dnsmessage.RCodeSuccess,
RecursionAvailable: true,
RecursionDesired: true,
Response: true,
Authoritative: true,
})
builder.EnableCompression()
common.Must(builder.StartQuestions())
Expand Down

0 comments on commit b488c42

Please sign in to comment.