LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Get_Hostbyname: Unkown host with Samba (https://www.linuxquestions.org/questions/linux-newbie-8/get_hostbyname-unkown-host-with-samba-4678/)

atari303 07-24-2001 02:50 PM

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

jharris 07-24-2001 02:59 PM

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...

DavidPhillips 07-24-2001 10:57 PM

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/

atari303 07-25-2001 10:37 AM

right on! that did it.
sorry to post a reply but just wanted to say thx --- ALOT.


All times are GMT -5. The time now is 11:58 AM.