Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
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
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.
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.
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.
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
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.
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.
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.
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.