Uri.CheckHostName Method tells whether the specified host name is a valid DNS name.
Imports System.IO
Imports System.Net
Imports System.Text
publicclass MainClass
Shared Sub Main()
Console.WriteLine(Uri.CheckHostName("www.google.com"))
End Sub
End Class