Description
I was looking to write an application which made use of sockets in .net core 1.1, so I firstly searched for "Sockets C#" and came across a nice example seen below:
https://msdn.microsoft.com/en-us/library/system.net.sockets.socket(v=vs.110).aspx#Examples
I tried using this and realised that the following line didn't work because no such method existed in .net core
hostEntry = Dns.GetHostEntry(server);
I then went to the .net core docs equivalent and saw the exact same example again
https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.socket?view=netcore-1.1#examples
I then looked up the specific .net core documentation on System.Net.Dns below
https://docs.microsoft.com/en-us/dotnet/api/system.net.dns?view=netcore-1.1
And the only example on this page uses a method that isn't supported by .net core 1.1. I don't know enough about System.Net.Dns to fix it myself otherwise I'd make a PR to fix this.