mirror of
https://github.com/soypat/lneto.git
synced 2026-09-11 17:19:30 +00:00
dns: simplify @hnw function and additional fixes
This commit is contained in:
@@ -630,8 +630,9 @@ func (s *StackAsync) StartLookupIPType(host string, qtype dns.Type) error {
|
||||
s.ednsopt,
|
||||
},
|
||||
EnableRecursion: true,
|
||||
MaxIPs: uint16(len(s.addrbufnip)),
|
||||
MaxCNAMEs: 8,
|
||||
// Leave headroom above the address buffer for CNAME records, which
|
||||
// occupy answer slots before the addresses they alias.
|
||||
MaxResponseAnswers: uint16(len(s.addrbufnip)) + 8,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user