LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Unknown Host - Network Help (https://www.linuxquestions.org/questions/slackware-14/unknown-host-network-help-820616/)

Auzern 07-19-2010 12:27 AM

Unknown Host - Network Help
 
Greetings. I just installed Slackware and it feels very professional to me. I'm still a Linux newbie.

When I open the web browser (Konqueror), I see a page that says "Unknown Host"

My hostname and domain fields are empty. I cannot see that I am connected to my ethernet interface even though I plugged it in. I open /etc/resolv.conf and I find it completely empty.

What do I do to connect to my ethernet network interface?

diamondsandrain 07-19-2010 12:31 AM

Did you skip the network setup in the slackware install?

Auzern 07-19-2010 12:33 AM

Thanks for your reply, diamondsandrain.

It asked me a Host Name during installation but I clicked cancel. Cause my router has no Host Name or Domain Name.
Do I need to use the Slackware DVD again or can it be done by editing some file?

diamondsandrain 07-19-2010 12:44 AM

You should be able to run the command netconfig (as root) to do the setup of the network. The hostname is just a local hostname just like you would provide for Windows. Its up to you what you want to call your computer.

twwwater 07-19-2010 12:50 AM

$ ifconfig eth0 X.X.X.X netmask xxxxx
$ add default gw XXXXX
$ echo "nameserver XXXXX" >/etc/resolv.conf

then, try again

diamondsandrain 07-19-2010 12:57 AM

Quote:

Originally Posted by twwwater (Post 4037716)
$ ifconfig eth0 X.X.X.X netmask xxxxx
$ add default gw XXXXX
$ echo "nameserver XXXXX" >/etc/resolv.conf

then, try again

That's all well and good, but if he does not commit these changes to the boot scripts then a reboot will lose them. (except for the nameserver setting put to the resolv.conf)

netconfig will automatically change the scripts.

EDIT: Also, netconfig will load the appropriate module for his network card

Auzern 07-19-2010 01:04 AM

Thanks a lot for all the replies. Gonna go to the Slackware Computer in 50mins and let you guys know ;)

diamondsandrain 07-19-2010 01:16 AM

As long as you installed the "network-scripts" package from the n series you should be able to run netconfig.

The official information from slackware is here:

http://www.slackware.com/config/network.php

Auzern 07-19-2010 05:55 AM

Thanks a lot!! The netconfig command fixed the problem.
Thanks again. :D
Damn, I love Slackware.


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