LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ping websites but they wont load (https://www.linuxquestions.org/questions/linux-networking-3/ping-websites-but-they-wont-load-490535/)

Kane2002 10-08-2006 05:22 AM

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

extrasolar 10-08-2006 06:22 AM

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.

:)

Kane2002 10-08-2006 07:50 AM

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)


dxqcanada 10-08-2006 07:59 AM

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.

Kane2002 10-08-2006 08:02 AM

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.

Kane2002 10-08-2006 09:27 AM

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.

:confused:

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

extrasolar 10-08-2006 09:47 AM

Try re-installing it. Also try selecting "Automatically detect proxy settings".

nuxrl 10-08-2006 09:56 AM

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.

Kane2002 10-08-2006 10:22 AM

i can connect using telnet.

so would u know how i can reconfigure firefox?

thanks
Kane

Kane2002 10-08-2006 11:45 AM

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

Kane2002 10-09-2006 03:12 AM

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


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