标签: c# asp.net url dns
If I try to resolve a website's IP with a url that includes http:// (at the beginning of the url) or / (at the end of the url), it won't work. How can I parse any url given by the user to a url that works with Dns.GetHostEntry method?
http://
/
Dns.GetHostEntry