
Code: Select all
%Systemroot%\System32\Drivers\Etc\hosts
Actually lmhosts is used for netbios resolution. If things work when you use it, then it surely must be a name resolution problem. Are you using DNS or WINS? Are you sure that your Samba host is registered on the server the windows clients use?cibonato wrote: jmbsvicetto: I don't think it is name resolution problem because if I try to ping the server (from any client) by its name everything seems go fine. I can't ping indeed because ping is disabled, but one can note that it would goes fine without IPTABLES.
I found a kind of solution... there's a file called lmhosts that works very similar to the /etc/hosts file in Linux.
There is no secret port.cibonato wrote:Maybe could do exist some secret port to open...
Try using the hosts file. I've found that sometimes SMB chokes completely under Windows if there is no entry in the hosts file for the server you wish to communicate with.cibonato wrote:And now another curious fact: the only file I touched on the Windows clients (no matters which one) was lmhosts, just it. hosts file is there, but empty.![]()
![]()

Actually, I think it's a name resolution problem at the clients. Can you ping your Samba server from windows using its name? Try using both the fqdn name and the hostname. Windows hosts use different methods to resolve names if you use the fqdn or just the hostname. By the way, no matter what MS says, you should still use WINS with win2k. As far as I know, you have to use WINS for Win9X. You can have your Samba server acting as a WINS server.cibonato wrote:jmbsvicetto: I think I misunderstood something, when I read about name resolution problem I was thinking about DNS and not about the NetBIOS name. I don't use WINS, just DNS. The Samba server is registered in the DNS, in fact, its NetBIOS name, hostname and "DNS name" is the same.
DNS is running and it is resolving the Samba server's name very well (from Linux I run ssh server_name and connect to the machine with no problem).

I didn't say that you shouldn't use SMB over TCP/IP. I just said, that even though you do that and use DNS, you will probably have a better experience also running WINS. By the way, Win2K03 WINS implementation "finally works" !GetCool wrote:But this isn't really necessary, and WINS is archaic. A Windows 2k or XP client can happily resolve a name without WINS, and use SMB directly over TCP/IP. I've done this.jmbsvicetto wrote:By the way, no matter what MS says, you should still use WINS with win2k.
WINS stands for Windows Internet Naming Service. It is basically a name resolution service, like DNS, but designed obviously for networks composed of Windows machines. It doesn't handle domain name resolution (this is the job of DNS), which is why it is really only necessary for networks that have older Windows clients.cibonato wrote:First of all... What the h*** is WINS? Will it really help me? What does it do?