C#: Get IP Address from Domain Name?
c#, ip-address
Solution
You can use the `System.Net.Dns` class:
Dns.GetHostAddresses("www.test.com");
Problem
How can I get an IP address, given a domain name? For example: `www.test.com`
c#, ip-address
You can use the `System.Net.Dns` class:
Dns.GetHostAddresses("www.test.com");
How can I get an IP address, given a domain name? For example: `www.test.com`