LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-19-2010, 12:27 AM   #1
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Rep: Reputation: 0
Exclamation 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?
 
Old 07-19-2010, 12:31 AM   #2
diamondsandrain
Member
 
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97

Rep: Reputation: 21
Did you skip the network setup in the slackware install?
 
Old 07-19-2010, 12:33 AM   #3
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
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?
 
Old 07-19-2010, 12:44 AM   #4
diamondsandrain
Member
 
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97

Rep: Reputation: 21
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.
 
Old 07-19-2010, 12:50 AM   #5
twwwater
Member
 
Registered: Nov 2008
Posts: 113
Blog Entries: 1

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

then, try again
 
Old 07-19-2010, 12:57 AM   #6
diamondsandrain
Member
 
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97

Rep: Reputation: 21
Quote:
Originally Posted by twwwater View Post
$ 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

Last edited by diamondsandrain; 07-19-2010 at 01:43 AM.
 
Old 07-19-2010, 01:04 AM   #7
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Thanks a lot for all the replies. Gonna go to the Slackware Computer in 50mins and let you guys know
 
Old 07-19-2010, 01:16 AM   #8
diamondsandrain
Member
 
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97

Rep: Reputation: 21
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
 
1 members found this post helpful.
Old 07-19-2010, 05:55 AM   #9
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Thanks a lot!! The netconfig command fixed the problem.
Thanks again.
Damn, I love Slackware.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9 ,host does reslove a dns name but ping says unknown host Byenary Linux - Networking 10 01-12-2011 01:33 AM
unknown host vpngw2 on network goober3 Linux - Networking 2 12-29-2010 09:55 AM
Unknown Netbios Packets to Unknown Network fukawi2 Linux - Networking 2 09-17-2007 06:41 PM
i m getting the error unknown host while im pinging with the host name gunjan thakkar Linux - General 2 12-14-2004 01:19 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration