LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2006, 06:22 AM   #1
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Rep: Reputation: 30
Ping websites but they wont load


Hey guys,
ive just installed arch linux, im usually a slack user but wanted to try something else.

Its all working fine, apart from my internet connection.
I can ping websites from the terminal, and have used pacman to update my system.
But when i load firefox and try to say access google, it doesnt seem to work.

Although it works if i use the ip ive got from pinging it.
So im guessing its something to do with DNS?

I dont understand how i can ping google.com and get an ip (this means dns is working right?),
but when i try to load it in firefox it doesnt work, unless i use the ip.

Any suggestions?

I also had this problem when i was trying out kubuntu.

Thanks,
Kane
 
Old 10-08-2006, 07:22 AM   #2
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Rep: Reputation: 16
Just because you can ping an ip address doesn't mean that dns is working. DNS = Domain Name Server: it's what gives a name to an ip. This is something usually done via your isp. Firefox just looks up the dns server to obtain an ip for the domain. If kubuntu doesn't work either then I believe it must something wrong with your connection to your isp and not an internal config error; especially if you can access the websites using an ip address.

Does slackware work OK? Are you able to determine if windows works?

To be sure, post the contents your /etc/rc.conf and /etc/hosts files here.

 
Old 10-08-2006, 08:50 AM   #3
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
I can ping the web address (google.com) as well and get a response, i wasnt just pinging the ip address.

I dont believe it is to do with my connection as i can use the net in both slackware and windows.

My /etc/hosts file contains:
Code:
127.0.0.1		localhost.localdomain	localhost kane
And the networking bit of rc.conf is:
Code:
HOSTNAME="kane"

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)

gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
 
Old 10-08-2006, 08:59 AM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Re: Ping website

Make sure Firefox is configured correctly:
Edit -> Preferences -> General -> Connection Settings = Direct Connection to Internet.

Check your /etc/resolv.conf also.


You can also use tcpdump to see what your browser is doing.
 
Old 10-08-2006, 09:02 AM   #5
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
my resolv.conf is set as :
Code:
nameserver <192.168.1.1>
i tried changing it to the dns server my router uses 139.175.55.224
but then when i tried to ping google.com i got unknown host.
 
Old 10-08-2006, 10:27 AM   #6
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
ive tried using links text browser, and that also works fine.

the loading/status bar on firefox seems to load to half way and then just stop.



also only google seems to work with the ip in firefox, all other sites seem to fail.
im stuck lol.

thanks for ur help though

Last edited by Kane2002; 10-08-2006 at 10:39 AM.
 
Old 10-08-2006, 10:47 AM   #7
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Rep: Reputation: 16
Try re-installing it. Also try selecting "Automatically detect proxy settings".
 
Old 10-08-2006, 10:56 AM   #8
nuxrl
Member
 
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176

Rep: Reputation: 35
Try this from a cmd window,
Code:
%telnet google.com 80
If it goes through, then the problem is in the browser, probably an incorrect configuration.
 
Old 10-08-2006, 11:22 AM   #9
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
i can connect using telnet.

so would u know how i can reconfigure firefox?

thanks
Kane
 
Old 10-08-2006, 12:45 PM   #10
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
well i removed firefox and installed opera, and have the same problem with that.

but i can browse all i want in links text browser.

hmmmmm
 
Old 10-09-2006, 04:12 AM   #11
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
still no luck,

i ran tcpdump and heres the output.
Code:
18:53:46.652970 arp who-has mygateway.ar7 tell fxfeeds.mozilla.com
18:53:46.653318 arp reply mygateway.ar7 is-at 00:0f:3d:b4:ba:3b (oui Unknown)
18:53:46.653337 IP fxfeeds.mozilla.com.32772 > mygateway.ar7.domain:  23892+ AAAA? fxfeeds.mozilla.com. (37)
18:53:46.653715 IP fxfeeds.mozilla.com.32773 > mygateway.ar7.domain:  19728+ PTR? 1.1.168.192.in-addr.arpa. (42)
18:53:46.658977 IP mygateway.ar7.domain > fxfeeds.mozilla.com.32772:  23892- 1/0/0 (37)
18:53:46.659331 IP fxfeeds.mozilla.com.32774 > mygateway.ar7.domain:  58090+ A? fxfeeds.mozilla.com. (37)
18:53:46.660553 IP mygateway.ar7.domain > fxfeeds.mozilla.com.32773:  19728- 1/0/0 PTR[|domain]
18:53:46.660913 IP fxfeeds.mozilla.com.32775 > mygateway.ar7.domain:  23943+ PTR? 2.1.168.192.in-addr.arpa. (42)
18:53:46.662268 IP mygateway.ar7.domain > fxfeeds.mozilla.com.32774:  58090- 1/0/0 A fxfeeds.mozilla.com (53)
18:53:46.663425 IP mygateway.ar7.domain > fxfeeds.mozilla.com.32775:  23943- 1/0/0 PTR[|domain]
18:53:51.661415 arp who-has fxfeeds.mozilla.com tell mygateway.ar7
18:53:51.661444 arp reply fxfeeds.mozilla.com is-at 00:26:54:11:2e:99 (oui Unknown)
18:53:55.154123 IP fxfeeds.mozilla.com.32775 > mygateway.ar7.domain:  60619+ AAAA? www.google.com. (32)
18:53:55.176112 IP mygateway.ar7.domain > fxfeeds.mozilla.com.32775:  60619 1/1/0 CNAME www.l.google.com. (100)
18:53:55.178100 IP fxfeeds.mozilla.com.32775 > mygateway.ar7.domain:  38541+ A? www.google.com. (32)
18:53:55.179592 IP mygateway.ar7.domain > fxfeeds.mozilla.com.32775:  38541- 1/0/0 A 1.0.0.0 (48)
18:53:55.194088 IP fxfeeds.mozilla.com.32776 > mygateway.ar7.domain:  25361+ PTR? 0.0.0.1.in-addr.arpa. (38)
18:53:55.211972 IP fxfeeds.mozilla.com.51173 > 1.0.0.0.www: S 519660099:519660099(0) win 5840 <mss 1460,sackOK,timestamp 416137 0,nop,wscale 2>
18:53:58.214234 IP fxfeeds.mozilla.com.51173 > 1.0.0.0.www: S 519660099:519660099(0) win 5840 <mss 1460,sackOK,timestamp 416887 0,nop,wscale 2>
18:54:00.194499 IP fxfeeds.mozilla.com.32776 > mygateway.ar7.domain:  25361+ PTR? 0.0.0.1.in-addr.arpa. (38)
18:54:04.214975 IP fxfeeds.mozilla.com.51173 > 1.0.0.0.www: S 519660099:519660099(0) win 5840 <mss 1460,sackOK,timestamp 418387 0,nop,wscale 2>
18:54:06.209894 IP mygateway.ar7.domain > fxfeeds.mozilla.com.32776:  25361 ServFail- 0/0/0 (38)
18:54:06.209934 IP fxfeeds.mozilla.com > mygateway.ar7: ICMP fxfeeds.mozilla.com udp port 32776 unreachable, length 74
does this mean anything to anyone? lol.

Kane
 
  


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
I can ping websites but can't get there via... d3funct Linux - Networking 2 03-08-2006 01:41 PM
Websites load slow, but once they load, any links inside them load fast smurcoch Mandriva 3 02-06-2006 01:47 AM
iptables - cannot load certain websites Booster Linux - Networking 3 01-31-2006 11:52 PM
FC3, can ping on my network but can't get websites A6Quattro Linux - Networking 4 07-20-2005 03:59 PM
Internet problems on LAN, cant ping certain websites, help please lurker Linux - Networking 2 07-17-2004 11:29 AM


All times are GMT -5. The time now is 08:17 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration