-
Notifications
You must be signed in to change notification settings - Fork 5.5k
DNS cannot resolve IPv6 #129077
Copy link
Copy link
Open
Labels
area-System.Netneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsideration
Milestone
Metadata
Metadata
Assignees
Labels
area-System.Netneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsideration
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
BCL
Dnsclass APIS doesn't seem to be able to resolve IPv6 even for basic well-known host namesReproduction Steps
Expected behavior
Same address list as I get via
Resolve-DnsNamepowershell command:Actual behavior
Program prints only IPv4 addresses:
Regression?
Same behavior on .NET Framework 4.8.1, .NET 8, 10 and 11
Known Workarounds
I don't think there are any. When I specify
AddressFamily.InterNetworkV6as the second parameter ofDns.GetHostAddressesI getSystem.Net.Sockets.SocketException (0x00002AFC)thrownConfiguration
.NET Framework 4.8.1, .NET 8, 10 and 11
Windows 11 25H2 (26200.8457) x64, didn't check on other OSes
Other information
No response