0
Answer

How to bypass the hosts file

Photo of Fakhar Salahuddin

Fakhar Salahuddin

20y
2.1k
1

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 ?

Answers (0)