Discussion:
[Samba] Can't open shares using netbios names
(too old to reply)
Wayne Stidolph
2009-08-16 01:50:07 UTC
Permalink
I need a pointer to what Fine Manual I should go read to set up my
netbios name resolution, because all my attempts to use netbios names
are being resolved against dns ...

I have one subnet (192.168.2/24), with several Fedora 11 machines and
several Windows XP machines, and a couple SMB/CIFS NAS units which also
share printers. No domain, it's all just a workgroup. The WinXP machines
seem to be working just fine ... but, I can't connect to anything using
smb with names from the Fedora 11 machines.

I can do nmblookup <windows server name> and I get back the IP address
of that server, looking like this:

[***@bunter plugins]$ nmblookup synology
querying synology on 192.168.2.255
192.168.2.104 synology<00>

I can do smbclient -L 192.168.2.104
and I get back the shares list.

I can mount a share using
mount -t cifs //192.168.2.104/public /mnt/testing

and then the share is mounted just fine

But, if I try to use the *names* then I get a very long delay and a
failure .... this does not work:

smbclient -L synology (nor does sbmclient -L //synology)

The Nautilus browser will let me browse into my workgroup, will list all
the servers ... but as soon as I double-click on one of the servers to
navigate into it, I get the same long delay and failure. The failure
usually is a timeout or has an NT_STATUS_ACCESS_DENIED attached to it,
and it will be from an external IP address - in this case, an IP address
associated with synology.com. So I see that there's something amiss with
my (netbios?) name resolution.

I have enabled wins support in smb.conf.

In /etc/nsswitch.conf I have tried
hosts: files wins bcast dns

What's next - do I have to hardcode the names into an lmhosts file?

-- Wayne
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Wayne Stidolph
2009-08-16 03:00:13 UTC
Permalink
Responding to myself - I stripped out the use of wins support and name
resolve order from smb.conf, and took out wins frmo nsswitch.conf hosts
line, and waited for a while ... and it started working. I wonder if I
was making changes too fast and not giving caches time to clear?

-- Wayne
Post by Wayne Stidolph
I need a pointer to what Fine Manual I should go read to set up my
netbios name resolution, because all my attempts to use netbios names
are being resolved against dns ...
I have one subnet (192.168.2/24), with several Fedora 11 machines and
several Windows XP machines, and a couple SMB/CIFS NAS units which
also share printers. No domain, it's all just a workgroup. The WinXP
machines seem to be working just fine ... but, I can't connect to
anything using smb with names from the Fedora 11 machines.
I can do nmblookup <windows server name> and I get back the IP address
querying synology on 192.168.2.255
192.168.2.104 synology<00>
I can do smbclient -L 192.168.2.104
and I get back the shares list.
I can mount a share using
mount -t cifs //192.168.2.104/public /mnt/testing
and then the share is mounted just fine
But, if I try to use the *names* then I get a very long delay and a
smbclient -L synology (nor does sbmclient -L //synology)
The Nautilus browser will let me browse into my workgroup, will list
all the servers ... but as soon as I double-click on one of the
servers to navigate into it, I get the same long delay and failure.
The failure usually is a timeout or has an NT_STATUS_ACCESS_DENIED
attached to it, and it will be from an external IP address - in this
case, an IP address associated with synology.com. So I see that
there's something amiss with my (netbios?) name resolution.
I have enabled wins support in smb.conf.
In /etc/nsswitch.conf I have tried
hosts: files wins bcast dns
What's next - do I have to hardcode the names into an lmhosts file?
-- Wayne
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Walter Mautner
2009-08-16 12:40:05 UTC
Permalink
Post by Wayne Stidolph
I need a pointer to what Fine Manual I should go read to set up my
netbios name resolution, because all my attempts to use netbios names
are being resolved against dns ...
I have one subnet (192.168.2/24), with several Fedora 11 machines and
several Windows XP machines, and a couple SMB/CIFS NAS units which also
share printers. No domain, it's all just a workgroup. The WinXP machines
seem to be working just fine ... but, I can't connect to anything using
smb with names from the Fedora 11 machines.
Because winxp defaults to broadcast name resolution unless configured
otherwise.
You need to tell the IP address of your wins server to the clients.
For windows, that's done via the "netbios-name-server IP-OF-WINS" directive in
your dhcpd.conf if you use dhcp, or under network/tcpip/advanced/wins options
otherwise.
For your fedora clients, you may be lucky with the dhcp directive as well, but
rather enter a "wins server = IP-OF-WINS" into the global smb.conf section.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
d***@symeo.com
2009-08-16 12:50:26 UTC
Permalink
Ich bin vom 14.08.2009 bis einschließlich 23.08.2009 im Urlaub und per E-Mail nicht erreichbar.
Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten.
In dringenden Fällen wenden Sie sich bitte an unser Sekretariat.
Sie werden dann an einen Ansprechpartner vermittelt.
Unser Sekretariat: +49 (0)89 660 77 96-0

I'm on vacation beginning 14.08.2009 until 23.08.2009 and not available per e-mail.
I will respond to your message after my return.
in case of urgent respond, please contact our office.
You'll be transfered to the right contact person.
Our office phone: +49 (0)89 660 77 96-0


--

Dirk Becker
Symeo GmbH
Proefssor-Messerschmitt-Str. 3, D-85579 Neubiberg / München

tel: +49 (0)89 660 77 96 320
fax: +49 (0)89 660 77 96 190

http://www.symeo.com

Symeo GmbH; Geschaeftsführer: Dirk Brunnengräber, Christoph Rommel
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen, HRB 157340
Walter Mautner
2009-08-18 20:20:09 UTC
Permalink
Post by Wayne Stidolph
I need a pointer to what Fine Manual I should go read to set up my
netbios name resolution, because all my attempts to use netbios names
are being resolved against dns ...
I have one subnet (192.168.2/24), with several Fedora 11 machines and
several Windows XP machines, and a couple SMB/CIFS NAS units which also
share printers. No domain, it's all just a workgroup. The WinXP machines
seem to be working just fine ... but, I can't connect to anything using
smb with names from the Fedora 11 machines.
I can do nmblookup <windows server name> and I get back the IP address
querying synology on 192.168.2.255
192.168.2.104 synology<00>
I can do smbclient -L 192.168.2.104
and I get back the shares list.
I can mount a share using
mount -t cifs //192.168.2.104/public /mnt/testing
and then the share is mounted just fine
But, if I try to use the *names* then I get a very long delay and a
smbclient -L synology (nor does sbmclient -L //synology)
The Nautilus browser will let me browse into my workgroup, will list all
the servers ... but as soon as I double-click on one of the servers to
navigate into it, I get the same long delay and failure. The failure
usually is a timeout or has an NT_STATUS_ACCESS_DENIED attached to it,
and it will be from an external IP address - in this case, an IP address
associated with synology.com. So I see that there's something amiss with
my (netbios?) name resolution.
I have enabled wins support in smb.conf.
In /etc/nsswitch.conf I have tried
hosts: files wins bcast dns
What's next - do I have to hardcode the names into an lmhosts file?
You have to hand out your wins server IP to the clients with a dhcp directive
such as "netbios-name-server IP-OF-WINS", or enter it manuylly in smb.conf for
the fedora clients ("wins server = IP-OF-WINS" in global section)
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Continue reading on narkive:
Loading...