LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2010, 04:48 AM   #1
kamchatka4987
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
Websites don't display properly (if at all) in Linux, but fine in Windows


I tried troubleshooting this on the Ubuntu forums, but my thread went nowhere, so here I am! I'm REALLY hoping someone can help, because this is immensely frustrating.

I just moved to a new house, with a new ISP. All of a sudden, all the machines running Ubuntu (there are 4 of them on my network) are having trouble rendering websites properly. Some websites are perfectly fine; some render with things missing (e.g., no photos or no CSS); some render as text-only; and some won't display at all - I get a "server not found" error.

If I boot into Windows on any of these machines, there's no problem.

To complicate matters more: Sometimes the "server not found" sites will decide to connect, then they'll fail again. This has been changing day to day (sometimes even hour to hour). Anything within the google.com domain is a good example of this.

Two of the affected machines are desktops (one running headless as a server), and two are laptops. All four are running Ubuntu, but they're all running different kernels. The ONLY things these machines have in common is that they're running Ubuntu, and they're all connecting to the internet wirelessly.

Because things work properly in Windows without exception, and because (at least on the laptops) things work fine in Ubuntu on any other internet connection, I can rule out wireless network adapters. I have tried using two different wireless routers - no change. I have tried using 4 different web browsers - no change. I have tried plugging a laptop directly into the incoming connection, bypassing the router entirely - no change. I have tried purging and reinstalling Flash on one of the laptops - no change. I have tried to connect to affected websites using their IP addresses to rule out DNS issues - no change.

This one has me completely stumped. The only thing I can think is that this is something to do with my ISP, but I can't imagine what it would be. I called the guy who runs the ISP (it's a local outfit run by one or two guys, as I'm living in the middle of nowhere), and he said there's nothing he's aware of at the ISP level that would be causing a problem like this.

Any help you can offer will be very much appreciated. I'm getting sick and tired of booting into Windows. I want my Linux back!!

Thank you!
 
Old 03-16-2010, 04:58 AM   #2
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 180

Rep: Reputation: 31
Can you look at /etc/resolv.conf? what does it say? Are there lines that say 'nameserver'?
Do those match the DNS nameserver of your new ISP?
 
1 members found this post helpful.
Old 03-16-2010, 05:01 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Obvious check: compare the output of aboutlugins in both browsers, but I'm sure you're up with that.
These problems get solved when you find a site that regularly misbehaves in a particular way. If you're in the backside of nowhere, lag or bandwidth could be issues. DNS may also be at issue; for instance, a web page may have a youtube link in there, but if linux can't resolve www.youtube.com quickly, then you don't get to see it. Try using opendns.org or some such. If that fails, you can try a small dns server yourself, dnscache sounds ideal if you'll let the stuff near a box in your net.
http://www.cr.yp.to
 
Old 03-16-2010, 05:06 AM   #4
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
I'd agree with Alan99 there - check the nameservers that Ubuntu is trying to use.

It's also worth checking that the browser you are using on Ubuntu is not set up to use some kind of proxy / privacy service that is no longer relevant - Firefox would have these under EDIT > PREFERENCES > ADVANCED > NETWORK TAB > SETTINGS BUTTON

And that you don't have any odd firewall rules (Firestarter/Iptables) relating to the old IP ranges of your previous ISP.
 
Old 03-16-2010, 06:02 AM   #5
kamchatka4987
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alan99 View Post
Can you look at /etc/resolv.conf? what does it say? Are there lines that say 'nameserver'?
Do those match the DNS nameserver of your new ISP?
Here are the contents of my /etc/resolv.conf:
Code:
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 192.168.100.1
This is new territory for me, but I'm thinking those contents aren't what they should be...

EDIT: The above is from the /etc/resolv.conf file on my own laptop. I just confirmed that the contents of the /etc/resolv.conf file on my server are exactly the same. Also, I have no idea how to find out what the DNS nameserver of my ISP is.

Last edited by kamchatka4987; 03-16-2010 at 06:04 AM.
 
Old 03-16-2010, 06:05 AM   #6
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
OK. Is the device at '192.168.100.1' a nameserver, dhcp server or xDSL router?
I would want to know this device does with DNS queries.

Out of curiosity -
Is the Ubuntu machine getting an IP address via DHCP or static?
Does the Windows machine get an IP address via DHCP or static?

Last edited by spampig; 03-16-2010 at 06:06 AM.
 
Old 03-16-2010, 06:13 AM   #7
kamchatka4987
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spampig View Post
OK. Is the device at '192.168.100.1' a nameserver, dhcp server or xDSL router?
I would want to know this device does with DNS queries.

Out of curiosity -
Is the Ubuntu machine getting an IP address via DHCP or static?
Does the Windows machine get an IP address via DHCP or static?
That's just it - there is no device at 192.168.100.1!

That got me thinking. Perhaps it's trying to point to my router, which is located at 192.168.1.1. I made the change in my resolv.conf file, and it seems like my issue has been completely solved!

Just to make sure I have everything straight, though: The device at 192.168.1.1 is a Linksys WRT160N router. It distributes all IPs via DHCP, regardless of OS.
 
Old 03-16-2010, 06:13 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You could try:
disable ipv6
verify or disable firewall
use open dns
Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
remove
Code:
domain localdomain
search localdomain
Verify the default gw
Code:
route -n
What is the output from
Code:
ping 212.100.160.51
ping www.google.be

Last edited by repo; 03-16-2010 at 06:15 AM.
 
Old 03-16-2010, 06:18 AM   #9
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
If there is no device at 192.168.100.1 check your network manager applet - as it has owned up to writing /etc/resolv.conf you can bet it's putting that in place 'helpfully' for you :-) Probably from something in the past.
 
Old 03-16-2010, 06:28 AM   #10
kamchatka4987
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spampig View Post
If there is no device at 192.168.100.1 check your network manager applet - as it has owned up to writing /etc/resolv.conf you can bet it's putting that in place 'helpfully' for you :-) Probably from something in the past.
If I right-click on the NM icon on the panel, and then click Connection Information, sure enough, the following line shows up:

Code:
Primary DNS:    192.168.100.1
I can't figure out how to change that to the proper address. This is important, because every time I boot up and NM connects, it's going to rewrite my resolv.conf file. I know this because it just did it to me!

Other than that, THANK YOU for your help on this!! I've been fighting this for weeks now, and it feels good to finally have it resolved.

Last edited by kamchatka4987; 03-16-2010 at 06:31 AM.
 
Old 03-16-2010, 06:42 AM   #11
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Network Manager is my Nemesis arggggg! I've removed it myself so I can't tell you how to edit it. I seem to recall I could only change some settings as root {or the first installed user on the box} with nm-applet but I don't recall how. Perhaps someone with NM knowledge can advise?
 
0 members found this post helpful.
Old 03-17-2010, 04:58 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
@doctorbighands: If you're on dhcp, then there's network scripts to start. If the setting "DHCPKEEPRESOLV" in your config is true or yes, then your resolv.conf is not overwritten each time you start.

Try setting the dns servers in your router (If you can) and that should get around it. Otherwise, you'll need DHCPKEEPRESOLV="yes" somewhere in /etc/sysconfig.
 
Old 03-17-2010, 09:31 AM   #13
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 180

Rep: Reputation: 31
resolv.conf should not be edited by hand, as normally entries are placed in it by the name resolving service (libnss I believe) If you are pointing to your router correctly (if there is an incorrect entry gateway=192.168.100.1 in your /etc/network/interfaces file it will point to the wrong place) I think that if you are using dhcp on your router it should obtain the DNS entries from the ISP by itself if your machines can get the entries from your router. I myself don't use network manager to setup my connection as I have a laptop, so use wifi-radar and have a net-applet in my gnome-panel to select connections.
 
Old 04-17-2010, 09:20 PM   #14
kamchatka4987
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
@doctorbighands: If you're on dhcp, then there's network scripts to start. If the setting "DHCPKEEPRESOLV" in your config is true or yes, then your resolv.conf is not overwritten each time you start.

Try setting the dns servers in your router (If you can) and that should get around it. Otherwise, you'll need DHCPKEEPRESOLV="yes" somewhere in /etc/sysconfig.
I'm in Ubuntu, so I don't have an /etc/sysconfig, and I'm not sure where else to look for a DHCPKEEPRESOLV. Hmm...

Also, in my router settings, there are two entries of note, both under the Status tab. One is "Default Gateway," and the other is "DNS1". They both read as 192.168.100.1. The problem is, I can't figure out how to change them! I'm pretty sure that this is where Network Manager is getting that address, so if I can figure out how to change those entries in my router, I'm probably good to go. I tried restoring my router to factory settings, and that still didn't do the trick.

I've restored my web access by editing my resolv.conf at every boot. I hate to have to keep doing that.

If anyone has any ideas about how I can get this resolved fully and permanently, I'm all ears. Thanks!
 
Old 04-18-2010, 03:04 AM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
try this
cd /etc
grep -r DHCPKEEPRESOLV *

It's a common variable in the init scripts, but is usually set externally.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Runs fine, Linux Crashes OC problems.... Chaosbringer Linux - Hardware 7 08-08-2008 09:33 PM
Using Linux and Windows: How to partition properly? Nucomer Linux - Newbie 38 07-14-2006 06:31 PM
websites don't display Solaris 10 gnu noob Solaris / OpenSolaris 12 12-08-2005 10:32 PM
No internet access in linux, works fine in windows c0uchm0nster Linux - Networking 8 01-29-2004 06:45 AM
printer works fine in windows but is slow under linux nef Linux - Hardware 4 09-28-2003 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration