mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 03:26:26 -08:00
net/dns/recursive: set EDNS on queries
Updates tailscale/corp#30631 Change-Id: Ib88ea1bb51dd917c04f8d41bcaa6d59b9abd4f73 Signed-off-by: Brad Fitzpatrick <[email protected]>
This commit is contained in:
1 parent
d6d29abbb6
commit
5d4e67fd93
1 file changed
+1
@@ -547,6 +547,7 @@ func (r *Resolver) queryNameserverProto(
|
||||
// Prepare a message asking for an appropriately-typed record
|
||||
// for the name we're querying.
|
||||
m := new(dns.Msg)
|
||||
m.SetEdns0(1232, false /* no DNSSEC */)
|
||||
m.SetQuestion(name.WithTrailingDot(), uint16(qtype))
|
||||
|
||||
// Allow mocking out the network components with our exchange hook.
|
||||
|
||||
Reference in new issue
Block a user