extensions
extensions copied to clipboard
Implement RFC6761 reserved DNS names handling
Replaces https://github.com/dotnet/aspire/pull/10311 since the code moved to this repo.
The Managed DNS implementation correctly special-cased "localhost" and resolved to loopback without contacting DNS server, but the authoritative RFC 6761 requires the same for subdomains as well (e.g. service.localhost). Ths PR fills the gap, including the other special-cased name "invalid".