LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-24-2001, 02:50 PM   #1
atari303
Member
 
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 fw-2.phx3.fw.mindspring.net (199.174.119.232)
# Date: 2001/07/19 08:06:43

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

My etc/hosts is:

# For loopbacking.
127.0.0.1 localhost
myActual IP Address host.domain.com

# 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?
thx
 
Old 07-24-2001, 02:59 PM   #2
jharris
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:
127.0.0.1       localhost
192.168.1.1     host.domain.net  host
That way if you just try to lookup the host without reference to the full domain it'll still be happy.

HTH

Jamie...
 
Old 07-24-2001, 10:57 PM   #3
DavidPhillips
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, 10:37 AM   #4
atari303
Member
 
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration