Web browsing fails to load correct URL, ignores /etc/hosts!! Daily issue
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
[Resolved] Web browsing fails to load correct URL, ignores /etc/hosts!! Daily issue
I'm at a loss. Please help. It is at the point that my internet experience is unusable.
Every day when I try to load a common set of URLs, I get Feedburner pages instead, or another site. This happens with Firefox (actually Iceweasel) and Konqueror both, on Debian Lenny with KDE (and on previous Kubuntu 7.10 and 7.04 installations).
Note these are examples that change slightly every day, but overall there are pretty much always issues with NYTimes.com, Slashdot.org, and TuxMachines.org, and I often get that Feedburner page.
I was using OpenDNS but I changed that to my ISP's default nameservers; no fix. I removed OpenDNS from my DSL modem and from my network switch also. I've added the ips of tuxmachines.org in my /etc/hosts file and that is *completely ignored* by both of my web browsers -- it was this way in my old Kubuntu days also. I do not have Bind installed. I've tried rebooting. My nameserver listed in /etc/resolv.conf is from 192.168.1.1, my DCHP-enabled router.
From the command line with 'host' or 'whois' , names/ips are resolved just fine. Using 'Links' (cli browser) also results in the wrong websites being displayed however -- tuxmachines.org brings up again the Feedburner failure page.
Any ideas, anyone?
Last edited by lefty.crupps; 08-11-2008 at 02:02 PM.
My /etc/resolv.conf has:
which is the router, which was pointing to OpenDNS but is now pointing to the internet DSL modem; the DSL modem was also pointing to OpenDNS but it is now getting the nameservers from my ISP.
So basically it should be hopping from one to the next until it gets to the ISP nameservers, correct?
The Windows machine on our network is getting its nameservers from the same method and has no issues, and never has (of this nature).
If I manually assign the nameservers in /etc/resolv.conf will they be wiped out at next reboot, due to DHCP addressing?
Last edited by lefty.crupps; 08-05-2008 at 12:56 PM.
and why wouldn't a webbrowser look at the hosts file??
that seems somewhat madness first off, since it is the easiest method for statically assigning names and IPs; second, it does function this way with my work iceweasel when testing webserver setups that don't have DNS set up yet...
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Look for your inet1.conf file in /etc (mine is in /etc/rc.d, but yours may be located somewhere else). There is a line it that contains the string DHCP_KEEPRESOVLV; you can set that to "yes" so DHCP won't overwrite it. Then you can set your nameserver in /etc/resolv.conf to a real address and see what happens. For example, try the address your ISP gave you. You can do this without rebooting or anything, just find a real DNS address or two and stick 'em in resolv.conf as above.
This is a heck of a lot easier than trying to walk up to a router and modem and hope they work (which, obviously, they ain't or you wouldn't be asking, eh?). Your ISP gives you a DNS address or two? Use 'em!