July 23rd, 2008, 05:05 PM
DNS giving wrong IP address!
ok here is the .net code
and everytime i am getting a wrong ip
IPHostEntry host = Dns.GetHostEntry(hostName);
// Addres of the host.
IPAddress addressList = host.AddressList;
can someone tell me what might be happening
Is there anything i can do to get the correct ip address?
Primary email: firstname.lastname@example.org
July 25th, 2008, 12:54 AM
Try it using shell commands.
dig or nslookup
see what you get.
Check the hosts file, which on Windows lives someplace like