LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2007, 07:15 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
I can ping but not surf


I am installing a new linux system (debian etch). I can, for example, ping www.altavista.com, but I cannot surf to it in firefox (it times out). What do I need to do?
 
Old 01-07-2007, 07:47 PM   #2
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
edit your /etc/resolv.conf file and add in a dns server. Sounds like you are using a static IP address, or your dhcp server is not configured to give out dns information.
here is a sample resolv.conf
Code:
nameserver 192.168.1.1
search myrouter.local
 
Old 01-07-2007, 08:07 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
I should have mentioned that I have a home network with a NAT. Outside the modem, the world sees a static ip. Inside each machine is 192.168.0.x. I changed the domain name in resolv.conf to the correct one. This allowed apt-get to work over the network, but did not fix the surfing.

Last edited by allelopath; 01-07-2007 at 08:15 PM.
 
Old 01-08-2007, 12:21 AM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Did you add an entry in resolv.conf for your router like chrisortiz said?

Can you visit this site - 66.102.7.147 (One of Google's IP addresses)?

This sounds like a DNS issue to me.

--Ian
 
Old 01-08-2007, 03:19 AM   #5
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
If you can ping & cannot browse(i donot find it a dns issue), the issue lies either in the configuration of your browser or with any firewall which stand in the middle or your router's firewall or your own box NATing or any non-default firewall at your own box.
 
Old 01-08-2007, 09:25 AM   #6
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
Since I can ping www.altavista.com (or www.google.com), I thought it was not a DNS issue.
I can surf to 66.102.7.147
Maybe the firewall between the browser and my router's firewall is on (as amit suggests)
How do I access the firewall in gnome?
It doesn't appear that I have gnome-lokkit or shorewall installed.

Last edited by allelopath; 01-08-2007 at 10:03 AM.
 
Old 01-08-2007, 05:42 PM   #7
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
you are absolutely right, if you can ping domain names, then dns is functioning. This only leaves 2 possibilities, port 80 is blocked, or firefox is set up wrong. I would go with firefox being set up wrong, since it is the most common. go to Edit > preferences > General > connection settings and select automatic proxy configuration. save then reload firefox.

To check and see if port 80 is blocked open up a console and type
Code:
links http://www.google.com
links is a console based web browser

Last edited by chrisortiz; 01-08-2007 at 05:43 PM.
 
Old 01-09-2007, 01:49 AM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
OP can surf by ip-address, so port 80 is not blocked.
 
Old 01-09-2007, 10:47 AM   #9
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
The links command shows a primitive version of the google page

More info:
I had firefox set to "Direct connection to the internet". Changing it to automatic had no effect.
I can surf to www.google.com (or anywhere) using Konqueror

Last edited by allelopath; 01-09-2007 at 10:52 AM.
 
Old 01-09-2007, 02:55 PM   #10
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
have you tried manually installing a newer version of firefox?
 
Old 01-09-2007, 04:01 PM   #11
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
No. Currently, it is firefox v 1.5.0.7
How do you suppose a newer version will fix the problem?
 
Old 01-09-2007, 07:28 PM   #12
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
well, since you can use another browser and get to websites, it isolates the problem to firefox. Have you tried using firefox with a different user?
 
Old 01-09-2007, 10:44 PM   #13
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
The problem occurs with firefox, opera, and epiphany. Only Konqueror has worked thus far. I thought I had mentioned this, but I see now that I hadn't. My bad. The problem occurs for boot the root user and a 'regular' user I have created.
 
Old 01-11-2007, 12:00 AM   #14
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
hmm, so how do opera, firefox and epiphany treat dns resolution requests differently compared to konqueror?
i wonder if they require a domain name...
try
Code:
domainname local
it should put you in the domain .local. Since .local is reserved for private use it won't affect anything, unless you happen to have purchased a domain. In which case you've probably already set a name and should ignore this.
Code:
cat /etc/HOSTNAME
will verify your hostname and domain name

Last edited by chrisortiz; 01-11-2007 at 12:01 AM.
 
Old 01-11-2007, 10:04 AM   #15
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
The problem was that the resolv.conf was being written over at reboot.
I have changed to a static ip and used the package resolvconf and now all works.
Thanks for you help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Can Surf - but cannot ping/ftp/mail etc chrisj05 Linux - Networking 4 12-13-2005 09:57 PM
LAN client can surf but not ping ? Biased turkey Mandriva 8 01-19-2005 08:48 PM
Bizzare: can surf, can't ping local Net. P_Shep Linux - Networking 6 11-11-2004 12:12 PM
Suse 9.1 (crippled version) unable to ping but able to surf l1fe Linux - Newbie 4 06-30-2004 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:37 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