LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Web surfing impossible (https://www.linuxquestions.org/questions/linux-networking-3/web-surfing-impossible-329807/)

griv 06-02-2005 11:35 PM

Web surfing impossible
 
Hello,

I have a very strange problem with my low speed connection. With my usual Internet provider, after connection, I don't have any problem : getting emails, surfing on the web, and so on. But if I try to connect with another provider, connexion is right, but I can't do anything, even I can't go to any web address.

I am running under Linux Mandrake 9.1. I tried to remove Shorewall and Iptables, but without better result. I use KPPP and I declared everything identical for all providers, except call number, ident & password. Connexion to each provider is OK, but I can't surf, except with my usual provider. Certainly there is something particular to my usual provider, which is declared somewhere, and which makes surfing, etc. OK, but what and where ?

Thanks in advance to everybody who has an idea !

griv:confused:

kencaz 06-02-2005 11:50 PM

Does each account in Kppp use Dynamic IP's and do they require different DNS servers. You second connection may be trying to use the DNS from the first account...

Try to Ping Google on the second account using IP and DNS see if you can resolve either one
ping 216.239.57.103
and
ping www.google.com

KC

paulsm4 06-02-2005 11:58 PM

Hi -

1. There are two likely culprits:
a) Your gateway is misconfigured (you can't get to the outside world)
... or ...
b) Your DNS is messed up (you can't resolve any names from the outside world)

2. Try this:
a) Identify your gateway:
netstat -r =>
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default homeportal.gate 0.0.0.0 UG 0 0 0 eth0
<= IN THIS EXAMPLE, MY DEFAULT GATEWAY IS "homeportal.gate"

b) Try to "ping" your gateway:
ping homeportal.gate =>
PING homeportal.gate.gateway.2wire.net (192.168.1.100) 56(84) bytes of data.
64 bytes from homeportal.gateway.2wire.net (192.168.1.100): icmp_seq=1 ttl=255 time=1.57 ms
... <= SO FAR, SO GOOD: WE HAVE A GATEWAY DEFINED, AND
WE KNOW WE CAN REACH IT...

c) Try to resolve "www.google.com" (or any address):
nslookup www.google.com =>
nslookup www.google.com
Server: 192.168.1.100
Address: 192.168.1.100#53

Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 66.102.7.99
Name: www.l.google.com
Address: 66.102.7.104
...
<= THIS WORKED: WE RESOLVED "WWW.GOOGLE.COM" TO "66.102.7.99"

d) I suspect that everything will work for you up to step "c)": the nslookup.

Even if you don't find "www.google.com", nslookup will report your DNS server (in this example, 192.168.1.100). Try to ping it:

ping 192.168.1.100 =>
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=255 time=1.97 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=255 time=1.76 ms
... <= I SUSPECT THIS WILL FAIL ON YOU

e) Your DNS server is controlled by the following file:

ls -l /etc/resolve.conf =>
-rw-r--r-- 1 root root 1279 2005-06-02 18:34 /etc/resolv.conf

This file will get updated every time you successfully connect to your ISP (or, in my case, when I booted my PC and got a DHCP address).

Make sure this file is owned by "root" and is writeable.

'Hope that helps .. PSM

griv 06-03-2005 12:16 AM

Quote:

Originally posted by kencaz
Does each account in Kppp use Dynamic IP's and do they require different DNS servers. You second connection may be trying to use the DNS from the first account...

Try to Ping Google on the second account using IP and DNS see if you can resolve either one
ping 216.239.57.103
and
ping www.google.com

KC

Thank you very much. I tried with manual IP : same result. I tried ping 216.239.57.103, and that's OK.

Now what can I do to make web names recognized ?

paulsm4 06-03-2005 12:19 AM

See above
 
Try to ping your name server (which you identified by looking at /etc/resolv.conf and/or trying nslookup).

You're close: I've got my fingers crossed!

griv 06-03-2005 12:45 AM

Thank you very much to all ! I think I solved the problem, even if I don't understand everything.... I got the first DNS address in resolv.conf, I put it in DNS field of KPPP, and I checked the "remove other DNS " field (or something like that). And like this, that works, I'm running with that connexion presently.

Thank you again to everybody ! That's great !


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