Determines whether the specified host name is a valid DNS name.
using System; public class MainClass{ public static void Main(){ Console.WriteLine(Uri.CheckHostName("www.yourDomain.com")); } }