LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   help connecting to internet (http://www.linuxquestions.org/questions/linux-networking-3/help-connecting-to-internet-226446/)

thomasjor 09-04-2004 02:34 AM

help connecting to internet
 
Sorry to start a new thread but I have searched these threads for hours (read: days) without a whole lot of progress. There are thousands of "Help connect to internet!" threads already I know but im stumped here. My problem is:

I have a compaq armada m300 (laptop) with intel etherexpress 10/100 NIC. I am running Slackware 10 with 2.6.8 kernel.

The OS sees the NIC

Code:

lspci -v output:

00:09.0 Ethernet Controller: Intel corp 82557/8/9 [Ethernet Pro 100] Rev 9
etc, etc...

I assume this is a good thing. Next, the computer is using the NIC to do something.

Code:

ifconfig output:

eth0
Link encap:Ethernet HWaddr (mac adress here)
inet addr: 192.168.0.102 Bcast: 192.138.0.225 Mask:255.255.255.0
etc, etc...

I assume this is also good.

Next, I can ping the router and get 0% loss. I can also ping LQ.org (64.179.4.149) without loss. Also a step forward.

I can also bring up LQ.org in Konqueror by entering the IP.

The problem is that I cannot bring up any website using its domain name (example: linuxquestions.org does not work).

Can anyone give me some direction? It is like I have 95% of a internet connection here.

I am semi-new to linux so please gear your response accordingly. :-) Thanks in advance.

bruno buys 09-04-2004 02:41 AM

Internet is already set, indeed. You only need a dns server. You either have to tell slackware to use your isp's dns server (there must be one), or you can run one locally.
Post again on how to do this, or google for it.

thomasjor 09-04-2004 03:46 AM

I am pretty new to this so I am not sure where to start searching. Google'ing "How to tell slack my dns" does not return a whole lot of useful results. Can we give a more n00b-ified answer by chance?

thomasjor 09-04-2004 04:40 AM

I have it working now, though I am not completely sure what I did to get here. If I narrow it down I will post again so this thread could be helpful to someone else.

bruno buys 09-04-2004 12:12 PM

A dns server will be queried "which ip owns this domain?" type, by the OS. The query sends the domain, the server outputs an ip. To resolve names into ip's, you have to tell your slack an ip of a server where it can send its queries.
In my suse, I set it to "update name servers with dhcp". Dhcp is the protocol through which I connect to the internet. So, basically, what you should do is figure out where is this config stored in slack.

JCdude2525 09-04-2004 04:12 PM

/etc/resolv.conf
 
Arn't the DNS addresses stored in /etc/resolv.conf? Most linux distros I've used that's where they were....

thomasjor 09-04-2004 10:48 PM

Yes I believe you to be right JCDude, resolv.conf is where you find the DNS servers, I guess. I opened my router config page and found a couple IP addresses which I added to /etc/resolv.conf like so:

Code:


emacs /etc/resolv.conf

nameserver ip.add.re.ss

I saved the file, exited emacs, exited Konsole, rebooted.

I was then able to connect to the internet. I also did about 1000 other things beforehand that may have had an effect. I am still changing one variable at a time to see what causes me to loose connection.

My concern is that this is my laptop, thus I take it places and connect to the internet in a number of environments. If this is only going to work at my house then I have only won half the battle.

Stay tuned for more as I understand it...


All times are GMT -5. The time now is 06:31 PM.