July 23rd, 2008, 04: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 24th, 2008, 11:54 PM
Try it using shell commands.
dig or nslookup
see what you get.
Check the hosts file, which on Windows lives someplace like