runtime
runtime copied to clipboard
Linux Dns.GetHostEntry doesn't work on Linux
The Dns.GetHostEntry doesn't work at all on netcore 2.0.0 on Ubuntu. It do work on windows netcore 2.0.0
Helpfully Dns.Resolve works on Linux as expected.
System.Net.Dns.GetHostEntry("192.168.1.21"); //fails with unreachable host System.Net.Dns.Resolve("192.168.1.21"); // works on the same station on Linux.
I can see the same issue closed dotnet/runtime#20060 but I can reproduce this bug.
I have checked the netcore 2.0.2 the bug described above is fixed. Closing the ticket.