I need to determine if a given domain exists or not. How can I code this in C#. I am given a domain like msn.com. All I need is to run the code passing domain and return if it valid or not. I guess I should to use Dns.GetHostByName, but I am not sure what would be the best solution for it.
Thank you
Thank you