C#: Get IP Address from Domain Name?
You could use the GetHostAddresses method:
var address = Dns.GetHostAddresses("www.test.com")[0];
You can use the System.Net.Dns
class:
Dns.GetHostAddresses("www.test.com");
You could use the GetHostAddresses method:
var address = Dns.GetHostAddresses("www.test.com")[0];
You can use the System.Net.Dns
class:
Dns.GetHostAddresses("www.test.com");