Uri.DnsSafeHost Property gets an unescaped host name that is safe to use for DNS resolution.
Imports System.IO
Imports System.Net
Imports System.Text
publicclass MainClass
Shared Sub Main()
Dim address As New Uri("http://yourdomain.com/temp/example.htm")
Console.WriteLine(address.Host)
Console.WriteLine(address.DnsSafeHost)
End Sub
End Class