The GetHostEntry method goes the other way around, converting from address to domain name:
using System;
using System.Net;
using System.Threading;
using System.IO;
using System.Text;
class ThreadTest
{
static void Main()
{
IPHostEntry entry = Dns.GetHostEntry("199.181.132.250");
Console.WriteLine(entry.HostName);
}
}
The output:
tienda.espndeportes.comjava2s.com | | Contact Us | Privacy Policy |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |