Solved

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

Posted on 2016-09-28
9
31 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
Comment Utility
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 500 total points
Comment Utility
0
 
LVL 1

Author Comment

by:filtrationproducts
Comment Utility
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
 
LVL 1

Expert Comment

by:stormsurge
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:filtrationproducts
Comment Utility
I did, followed by clearing DNS in Windows as well as in Chrome. Still resolved the wrong IP in Chrome.
0
 
LVL 25

Expert Comment

by:DrDave242
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Most reliable solution is to point your DNS to the hosting site. Changing hosts and using browsers were pretty unreliable.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now