net/dns/recursive: set EDNS on queries

Updates tailscale/corp#30631

Change-Id: Ib88ea1bb51dd917c04f8d41bcaa6d59b9abd4f73
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2025-07-21 08:36:43 -07:00 committed by Brad Fitzpatrick
parent d6d29abbb6
commit 5d4e67fd93

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.