Skip to content

Commit

Permalink
Merge pull request #34 from projectdiscovery/33-feature-edns
Browse files Browse the repository at this point in the history
Enabling EDNS by default
  • Loading branch information
Mzack9999 committed Aug 11, 2021
2 parents e02a826 + 086e157 commit 01503a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Expand Up @@ -155,7 +155,6 @@ func (c *Client) QueryMultiple(host string, requestTypes []uint16) (*DNSData, er
return nil, err
}
}
msg.SetEdns0(4096, false)
}

question := dns.Question{
Expand All @@ -165,6 +164,9 @@ func (c *Client) QueryMultiple(host string, requestTypes []uint16) (*DNSData, er
}
msg.Question[0] = question

// Enable Extension Mechanisms for DNS for all messages
msg.SetEdns0(4096, false)

var resp *dns.Msg
for i := 0; i < c.maxRetries; i++ {
index := atomic.AddUint32(&c.serversIndex, 1)
Expand Down

0 comments on commit 01503a8

Please sign in to comment.