Browse Source

set recursive bits

pull/1581/head
Darien Raymond 6 years ago
parent
commit
b488c42453
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 9
      proxy/dns/dns.go

9
proxy/dns/dns.go

@ -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())

Loading…
Cancel
Save