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 #20060 but I can reproduce this bug.