1836644 Members
1767 Online
110102 Solutions
New Discussion

smbclient

 
Alice Round
Occasional Contributor

smbclient

I've installed the Samba Client and Server software on a unix server running 11.0

I'm using the default configuration file
and when I run /opt/samba/bin/smbclient -M Unable to resolve name

I've put the hostname in /etc/hosts and I've tried this by the IP address also.
3 REPLIES 3
John Poff
Honored Contributor

Re: smbclient

Can you resolve the hostname from the Unix machine? What happens when you try:

nslookup


Alice Round
Occasional Contributor

Re: smbclient

nslookup works by hostname and IP both.
John Poff
Honored Contributor

Re: smbclient

Hmm. Try the smbclient command again, but this time add this option:

-R hosts

This tells smbclient to use your /etc/hosts file to resolve the name. The default for smbclient is to resolve to lmhost, hosts, wins, and bcast. I'm curious to hear if you get the same error when you specify /etc/hosts.

Also, what are the permissions on your /etc/hosts file? Maybe smbclient can't read it.

Another thing to check is your workgroup name. If you are using the default smb.conf file it might not be set to the same workgroup name as what you are using on your local network. This might only be an issue if you are trying to send a message to a Windows machine.