[NTLUG:Discuss] Samba, WINS support and smbclient not using wins.

Richard Geoffrion ntlug at rain4us.net
Fri Sep 6 14:18:02 CDT 2002


I can't seem to get smbclient to resolve host names via wins.   I can look
them up in nmblookup but smbclient can't resolve via bcast or wins.  OH
SURE! smbclient will work with hosts and lmhosts but I don't want to retype
the lmhost file every morning. :)

So  here's what I have configured.  Can some one look over
this and see if I have anything blaringly wrong?  Any suggestions as to why
this isn't working?


[dhcpd options]
option netbios-node-type = 2;
option netbios-name-server 10.1.27.1;
[/dhcpd options]

[logged output]
root at gwifw# cat /etc/hosts
# For loopbacking.
127.0.0.1 localhost
10.1.27.1 gwifs
# End of hosts.

root at gwifw:~# cat /usr/local/samba/lib/lmhosts
10.1.27.1 gwifs
root at gwifw:~# cat /usr/local/samba/lib/smb.conf
[global]
        workgroup = GWI_DOM
        netbios name = GWIEMAIL
        server string = Email server
        interfaces = 10.1.27.254/24 127.0.0.1
        bind interfaces only = Yes
 name resolve order = bcast wins hosts lmhosts
        log file = /usr/local/samba/var/log.%m
        max log size = 50
        os level = 64
        dns proxy = No
 wins support = No
        wins server = 10.1.27.1

root at gwifw:~# ssh gwifs
<snip the login>
root at gwifs:~# cat usr/local/samba/lib/smb.conf
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/09/05 16:13:40

# Global parameters
[global]
 workgroup = GWI_DOM
 netbios name = GWIFS
 server string = GWI Network File and Print Server
 interfaces = 10.1.27.1/24 127.0.0.1
 bind interfaces only = Yes
 encrypt passwords = Yes
 passwd program = /usr/bin/passwd %u
 unix password sync = Yes
 log file = /usr/local/samba/var/log.%m
 max log size = 50
 name resolve order = bcast wins hosts lmhosts
 domain admin group = @admin
 logon script = gwidom.bat
 logon path = \\%L\Profiles\%U\%m
 logon drive = H:
 logon home = \\%L\%U
 domain logons = Yes
 os level = 64
 preferred master = True
 domain master = True
 dns proxy = No
 wins support = Yes

<snip the shares>

root at gwifs:~# exit
logout
Connection to gwifs closed.

root at gwifw:~# nmblookup -R -U gwifs joeb
querying joeb on 10.1.27.1
10.1.27.170 joeb<00>

root at gwifw:~# smbclient -M joeb
added interface ip=10.1.27.254 bcast=10.1.27.255 nmask=255.255.255.0
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
Connection to joeb failed

root at gwifw:~# nmblookup -R -U gwifs joeb
querying joeb on 10.1.27.1
10.1.27.170 joeb<00>

root at gwifw:~#
[/logged output]






More information about the Discuss mailing list