Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hosts file update (Windows 10) - pinging OK but browser still loading old website

Posted on 2016-09-28
9
Medium Priority
?
131 Views
Last Modified: 2016-10-09
I have updated my hosts file to manually redirect website.com to go to a specific IP address. I flushed DNS and pinged website.com and it is resolving the correct IP. However, when I open a browser and go to the site, it is loading the old website (Wrong / Old IP Address).

I have tried clearing all the browser history, and running in private mode. Browsers I have tested with are Firefox, IE, and Chrome.

Any ideas why the browsers will not go to the IP address loaded in the HOSTS file.

Thanks,
Dan
0
Comment
Question by:filtrationproducts
  • 6
  • 2
9 Comments
 
LVL 1

Author Comment

by:filtrationproducts
ID: 41820330
I used IPvFoo to figure out that initially when I connect it is using the correct IP, however when I click any link from within the initial page it is reverting to the old IP.
0
 
LVL 1

Assisted Solution

by:stormsurge
stormsurge earned 2000 total points
ID: 41820450
0
 
LVL 1

Author Comment

by:filtrationproducts
ID: 41820465
Yes, and it pings fine. I did a little more digging and discovered that my browsers are setup to ping the real world to resolve IP addresses. So every time I clear DNS, the browser pings the real world to resolve the IP address I do not want to use. I managed to work around this by using the direct link provided by my web hosting company to access the site.

However, if there is a way to disable this feature in any known browser it would be great to know so I dont have to type in the remaining part of the address manually to test sub pages.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 1

Expert Comment

by:stormsurge
ID: 41820507
Did you try unchecking number 1

Google Chrome privacy settings
  1. Use a web service to help resolve navigation errors. ...
  2. Use a prediction service to help complete searches and URLs typed in the address bar. ...
  3. Predict network actions to improve page load performance. ...
  4. Enable phishing and malware protection. ...
  5. Use a web service to help resolve spelling errors.
0
 
LVL 1

Author Comment

by:filtrationproducts
ID: 41820639
I did, followed by clearing DNS in Windows as well as in Chrome. Still resolved the wrong IP in Chrome.
0
 
LVL 27

Expert Comment

by:DrDave242
ID: 41823727
I used IPvFoo to figure out that initially when I connect it is using the correct IP, however when I click any link from within the initial page it is reverting to the old IP.
Any chance the URL in those links could be different from what you've added to the hosts file (e.g., you created an entry for website.com, but the links refer to www.website.com or something of that sort)? I'm asking because the behavior you describe simply shouldn't happen. The hosts file adds entries to that machine's DNS resolver cache, which is checked before queries are ever sent to a DNS server.
0
 
LVL 1

Assisted Solution

by:filtrationproducts
filtrationproducts earned 0 total points
ID: 41823763
I don't believe so. However I did find a solution. The browser Opera does not have its own DNS built into it. I have been able to redirect the IP in the hosts file and use Opera without any problems.
0
 
LVL 1

Accepted Solution

by:
filtrationproducts earned 0 total points
ID: 41827782
An update on this - eventually Opera started pointing to the IP on the internet as opposed to the hosts file. I decided to change my DNS to the nameservers where the website files were being hosted. Since the host believed they were hosting the actual domain name, it then worked properly.
0
 
LVL 1

Author Closing Comment

by:filtrationproducts
ID: 41835719
Most reliable solution is to point your DNS to the hosting site. Changing hosts and using browsers were pretty unreliable.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses
Course of the Month11 days, 10 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question