LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-06-2007, 07:15 PM   #1
forrest44
Member
 
Registered: May 2004
Location: In the staple gun
Distribution: slackware4life
Posts: 119

Rep: Reputation: 15
Weird firefox connection problem


Well I got a pcmcia wireless lan card (to connect to the internet) based on the bcm4318 chipset, then I compiled ndiswrapper and loaded the windows driver, and everything's sweet.

Everything seems connected to the internet (ping, links, konqueror, etc), but when I try to use firefox, for example to go to google.com, the status bar will show this:

Looking up google.com...
Connecting to google.com...

Then it will just sit there, and not do anything. After a while, it will say "web page cannot be displayed..."

I also noticed the problem with a knoppix live cd (using ndiswrapper again)

What do you think could be causing this? What should I do?

I'm using a fresh Slackware 11.0 install with the 2.17.13 kernel.
I'm also using 128-bit WEP encryption.
 
Old 01-07-2007, 01:19 AM   #2
forrest44
Member
 
Registered: May 2004
Location: In the staple gun
Distribution: slackware4life
Posts: 119

Original Poster
Rep: Reputation: 15
I discovered that if I ping an address, or go to it in links, then firefox will happily browse around the entire website. However, if I go to it first in firefox, it doesn't work...

What would you do?
 
Old 01-07-2007, 03:52 AM   #3
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 49
al@AB60R:~$ cat /etc/resolv.conf
search 192.168.1.254
nameserver 192.168.1.254
al@AB60R:~$


May not be it. But what's in your /etc/resolv.conf

mine improved somewhat when I rid mine of search localhost and put to search my DSL modem/firewall/router (internet gateway) instead ie the search 192.168.1.254

but I still (with Konqueror) intermittently have name resolve problems ie site/domain/page not found. Dunno if it's me or if it's my ISP's name server(s).

Alan.
 
Old 01-07-2007, 05:00 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Try using tcpdump or Ethereal/Wireshark to see what's happening on your network interface.
 
Old 01-09-2007, 03:19 PM   #5
forrest44
Member
 
Registered: May 2004
Location: In the staple gun
Distribution: slackware4life
Posts: 119

Original Poster
Rep: Reputation: 15
my /etc/resolv.conf (generated by dhcp) has:

nameserver 10.1.1.1

which is the address of my dsl modem/router.

I have 2 other machines (also slackware) which are connected to the router via ethernet, which have the same address in /etc/resolv.conf. They can both browse the net perfectly.

If I enter the IP address of a site in Firefox, it will go there. I'm beginning to think it is a problem with the router in the way it handles DNS requests from wireless connections...

Konqueror is good enough for now I suppose
 
Old 01-09-2007, 03:39 PM   #6
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
The nameserver address you've given is part of one of the blocks of addresses that can be used internally on a private network without being registered. Paragraph 3 of RFC 1918 has more detail. You can find it at http://www.faqs.org/rfcs/rfc1918.html.

I am not an expert, but my suspicion is that your router is connecting to your ISP, getting an IP address to use on the internet-facing side of the router and getting a list of nameservers it should use. Your machines on your network are getting their IP addresses by DHCP from the router, which then tells them to use itself, under its non-internet-facing IP address, as their nameserver. For some reason, firefox doesn't like that.

Is there some way that you can see what the router is using for a nameserver?

Last edited by hussar; 01-09-2007 at 03:40 PM.
 
Old 01-09-2007, 03:41 PM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
I'm pretty sure it has to do with the dns caching of the DHCP server (your router I suppose?). I only say this because I had the same experience when I did not correctly set up my Linux router/DHCP server.

I'm not sure how to fix it on your router, but maybe try searching around google for your router model and DNS caching and maybe something will pop up.

Best regards,
...drkstr

**edit**
good advice from hussar too. He posted before I finished writing. I remember having to put in the DNS server to my DSL company back when I was using them (and a non Linux router)

Last edited by drkstr; 01-09-2007 at 03:44 PM.
 
Old 01-09-2007, 03:58 PM   #8
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
drkstr, if it's the DNS (cache), then why would it work with Konqueror and not with Firefox?

hussar, I am in exactly the same situation (my resolv.conf points to my internal DSL IP address) and it works fine with Firefox. (besides, I think it's the resolver to does the DNS lookup, not Firefox)

Last edited by uselpa; 01-09-2007 at 04:04 PM.
 
Old 01-09-2007, 05:47 PM   #9
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
drkstr, if it's the DNS (cache), then why would it work with Konqueror and not with Firefox?
I would imagine that Firefox uses a different method then Konqeror since it is not directly integraded into the OS. Firefox is multiplatform while Konqeror is not.

The problem I had with the incorrect DNS caching was specificly with firefox. I can't pretend to know why, only guess.

Best regards,
...drkstr
 
Old 01-10-2007, 06:32 AM   #10
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
I think it is interesting that the OP also said that he had this problem with a knoppix live CD, although it is not clear to me if he meant that he has this problem with firefox on the knoppix live CD or with knoppix connecting at all from the live CD. If it is the latter, it would seem to rule out the setup on the machine using the wireless card and point more to the router as the culprit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox weird problem? jmr0311 Mandriva 5 12-05-2005 06:50 PM
Weird connection problem Asellus Mandriva 1 09-06-2005 12:48 AM
firefox weird problem! TranceDude Linux - Software 5 08-17-2005 07:42 AM
Weird Firefox font problem oneandoneis2 Linux - General 3 08-02-2005 05:13 PM
Weird Ebay/Firefox Problem proudclod Linux - Software 1 05-28-2004 09:30 PM


All times are GMT -5. The time now is 09:43 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration