Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-24-2001, 03:50 PM   #1
Registered: May 2001
Posts: 34

Rep: Reputation: 15
Get_Hostbyname: Unkown host with Samba

Hi, I am running Slackware 7.0 and I installed Samba 2.0.5 from source. Everything went ok with the ./configure, make, make install - smb.conf looks is:

# Samba config file created using SWAT
# from (
# Date: 2001/07/19 08:06:43

# Global parameters
workgroup = WORKGROUP
security = user
path = /export/samba/test

My etc/hosts is:

# For loopbacking. localhost
myActual IP Address

# End of hosts.

I run ./testparm sbm.conf and get the following:

Load smb config files from smb.conf
Get_Hostbyname: Unknown host host
Failed to get my hostname.

Do I need something more in smb.conf? Also, I can't tell why testparm is only giving me back just the host and not the rest when reporting this error, is that normal?

any suggestions?
Old 07-24-2001, 03:59 PM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
In /etc/hosts you also want just the name of you machine. For example
Code:       localhost  host
That way if you just try to lookup the host without reference to the full domain it'll still be happy.


Old 07-24-2001, 11:57 PM   #3
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
type hostname

this should return your hostname

if it is not set you need to put it into your network file

mine is in /etc/sysconfig/
Old 07-25-2001, 11:37 AM   #4
Registered: May 2001
Posts: 34

Original Poster
Rep: Reputation: 15
right on! that did it.
sorry to post a reply but just wanted to say thx --- ALOT.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unkown file! Help please! voyciz Linux - Newbie 13 08-13-2010 09:19 AM
Unkown symbol Error shogun1234 Linux - General 1 08-17-2005 05:45 AM
Unkown Host CloudBuilder Linux - Networking 3 05-08-2005 10:39 AM
wacom.ko has unkown symbol? bobbens Debian 0 01-16-2005 07:14 AM
Unkown Host Error- internet malikk Linux - Newbie 3 05-24-2004 11:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 PM.

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