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:
Brad Fitzpatrick authored and Brad Fitzpatrick committed 2025-07-21 09:06:13 -07:00
1 parent d6d29abbb6
commit 5d4e67fd93
1 file changed
+1
+1
View File
@@ -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.