How to bypass the hosts file

Aug 8 2005 7:06 PM

Hello,

I need an urgent help here. I would like to write a code where I can bypass the hosts file entries while contacting the web server directly. I also want to get the list of IP addresses the for that domain. getHostByName function serves the purpose but it reads the address from hosts file. Can I do it through sockets or is there any other way to do it ?