VanAlex Posted October 13, 2003 Share Posted October 13, 2003 Hi! How can I make sure my hosts file is the first place my system checks to resolve host names? Even if I get dynamic IP configuration from my ISP. Link to comment Share on other sites More sharing options...
OPaul Posted October 13, 2003 Share Posted October 13, 2003 The HOSTS file should be located at C:\WINDOWS or WINNT\system32\drivers\etc. Link to comment Share on other sites More sharing options...
Frank Posted October 13, 2003 Share Posted October 13, 2003 VanAlex: I believe your machine should check your host file first BEFORE checking your ISP's DNS server. Are you sure it is not working this way? Link to comment Share on other sites More sharing options...
VanAlex Posted October 13, 2003 Author Share Posted October 13, 2003 If that is the default behaviour great. But I was afraid that maybe the ISP trough DHCP configured my TCP-IP to go straigth to it's DNS servers. This ISP's DNS servers are always going down so having my favorite sites on my hosts file really helps. Link to comment Share on other sites More sharing options...
VanAlex Posted October 13, 2003 Author Share Posted October 13, 2003 My question comes from the fact that even tough I have some website's host names and IP addresses in the hosts file, when I open some of them, they stay for 30 seconds with this message: "Looking up host name". That sure doesn't like it's being checked locally in the hosts file. Link to comment Share on other sites More sharing options...
Frank Posted October 13, 2003 Share Posted October 13, 2003 I am not sure about that one, but what you can do about your crappy ISP's DNS servers.....is use someone elses DNS servers :). If you have a internet problem you would have to switch them back to call in, but I think that may be easier then added info in your hosts file. Link to comment Share on other sites More sharing options...
DigitalDreamer Posted October 13, 2003 Share Posted October 13, 2003 Fowen is correct it does check the hosts file first. I am not sure who your isp is but if there DNS is as bad as it sounds, seriously find a new ISP. I have been running an ISP for over 5 years and setting up a reliable DNS server is so easy to install and maintan its pathetic. A good Bind 9.2 (free) DNS server will run itself and die only when you pull its plug. Just giving advise from experience. Link to comment Share on other sites More sharing options...
VanAlex Posted October 13, 2003 Author Share Posted October 13, 2003 I'm living in Africa..so here in Angola every ISP works terribly =) Link to comment Share on other sites More sharing options...
Recommended Posts