LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Connecting to the internet problem (https://www.linuxquestions.org/questions/linux-newbie-8/connecting-to-the-internet-problem-215447/)

Detriamus 08-09-2004 01:51 PM

Connecting to the internet problem
 
Hey all, I have just recently installed slack and I'm trying to get it to connect to the internet. I have done netconfig (using static ip) and entered everything correctly and I have loaded the modules for the driver.

However, when I run mozilla, it gets stuck on resolving host i.e. there is a connection but it cant load the page.

In /sbin/ifconfig -a eth0 is present (if that helps at all)

Please help me with simple answers, as i am new to linux :S

Thanks a lot

Peacedog 08-09-2004 02:26 PM

how are you connecting? what does cat /etc/resolv.conf return?

kilgoretrout 08-09-2004 02:32 PM

Open a console and try running these:

$ ping -c3 www.yahoo.com
PING www.yahoo.akadns.net (216.109.118.65) 56(84) bytes of data.
64 bytes from p2.www.dcn.yahoo.com (216.109.118.65): icmp_seq=1 ttl=51 time=34.3 ms
64 bytes from p2.www.dcn.yahoo.com (216.109.118.65): icmp_seq=2 ttl=51 time=34.9 ms
64 bytes from p2.www.dcn.yahoo.com (216.109.118.65): icmp_seq=3 ttl=51 time=38.7 ms

$ ping -c3 216.109.118.65
PING 216.109.118.65 (216.109.118.65) 56(84) bytes of data.
64 bytes from 216.109.118.65: icmp_seq=1 ttl=51 time=37.3 ms
64 bytes from 216.109.118.65: icmp_seq=2 ttl=51 time=33.3 ms
64 bytes from 216.109.118.65: icmp_seq=3 ttl=51 time=38.0 ms


If you can ping the numeric ip but not www.yahoo.com you don't have your domain name server setup correctly. That's configured in /etc/resolv.conf and should look like this:

nameserver <ip address of your isp's name server>
nameserver <ip of your isp's second name server>
search <ispname.com or .net>


The ip addresses in the above are numeric and should be available from your isp.

Detriamus 08-09-2004 02:51 PM

Ahhh you're absoluety right, thanks so much killgoretrout.

Thanks also peacedawg lol

Laters


All times are GMT -5. The time now is 03:49 PM.