Blogs
- Contributing Editor Scott Spanbauer offers incisive tips, tricks, and commentary on a broad range of online issues.
Subscribe to this blog
Internet Tips
Unholy 'Hosts' File Hang-Up
My desktop PC won't access such Web sites as www.weather.com, www.newyorktimes.com, and even www.microsoft.com, no matter which browser I use. I get the standard 'The page cannot be displayed...' message. Oddly, I can get into some inaccessible sites if I drop the 'www' from the address. It isn't a phone-line or ISP problem because I can get in when I dial into the same account using the same line from another computer. Someone suggested that I reinstall Windows. Is there an easier fix?
Seth Shaw, Colebrook, Connecticut
Your problem could stem from other causes, but everything you mention points to a Hosts file gone awry. Back before the Web, computers needed the Hosts file to correlate domain names such as 'pcworld.com' with the numeric IP addresses that allow data to move from one machine to another over the Internet.
Internet service providers and office network administrators now use Domain Name System servers to track the ever-changing domains and their associated IP addresses. The Hosts file remains on PCs, however, enabling us to inadvertently mangle our Internet access by adding addresses to the file, and letting Internet utility authors bypass sometimes-poky DNS servers to speed Web-site access. My guess is that you're a victim of the latter.
The problem is that a domain's IP address tends to change over time. If you don't regularly update your speed-up utility, the out-of-date address mappings listed in the Hosts file prevent access to the domain. Meanwhile, the DNS server continues to handle domains not listed in Hosts, which explains why you can get to some sites but not to others.
Remedying the problem is easy: Search your hard disk (using Start, Find or Start, Search) for a file called 'hosts' (don't enter an extension). The only entry not starting with '#' should be '127.0.0.1 localhost' (see Figure 2); if there are other lines without '#', delete them. Or if you want to avoid editing the file, rename it something like 'hosts.bak'--and forget about it.
The Best of PC World
Full Windows 7 coverage
Dell's December Days of Deals
-
Dell's December Days of Deals
8 days of deals December 4th to 11th.
Check each day for big savings on Laptops, Desktops, HDTVs, Games and more!
Focus on Personal Productivitysponsored by Microsoft
- Personal Finance 2.0 These free and fee-based Web services not only aggregate data from your online bank accounts, they give you tools for managing your money.
- High-Tech Travel Tips Plenty of stories provide advice for elite mobile professionals. But what about you, the unproductive traveler?
People who read this also read:
Best Prices on Antivirus Software
Norton Antivirus 2010 (Full Product, 1 User)Price: $17.50
Anti-virus 2010 (OEM Product, 1 User)Price: $17.95
Norton AntiVirus 2009 (Full Product)Price: $16.89
AntiVirus 2010 (Full Product)Price: $24.95
Anti-Virus 2009 (Full Product)Price: $15.04
Norton Antivirus 2010 (Full Product, 1 User)Price: $24.00
All PC World Blogs
- Why Apple Won't Clean Up App Store User Reviews Truth be told, iTunes has been devoid of homemade social features since day one, and that's unlikely to change in the foreseeable future.
- Chrome Browser Beta Finally Comes for Mac OS X and Linux Google Chrome has been available for Windows for over a year. Now the Web browser beta is available for Mac OS X and Linux as well.
- Google To Allow New EtherPad Creation; Will Release EtherPad Source EtherPad users won't be left out in the cold, despite the Google buyout.
- Microsoft Fixes IE Zero-Day Flaw Today's monthly patch batch closes a previously disclosed critical hole in the browser, along with flaws in Microsoft Office Project and Server 2008.
- Lenovo Laptop Showcase Find out how Lenovo IdeaPads and Thinkpads balance performance and portability. Visit the Lenovo Resource Center for more info...
Cameras
Camcorders
Cell Phones
Components
Desktops
HDTV
Home Theater
GPS
Laptops
Monitors
MP3 Players
Networking &
Printers
Storage










