Skip to content

Commit

Permalink
Enabling EDNS by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Aug 6, 2021
1 parent e02a826 commit 086e157
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 086e157

Please sign in to comment.