We have a Samba server which acts mainly as file server, but we want it to resolve host names for local machines. I have written some IP-hostname lines both in /etc/hosts and /etc/samba/lmhosts, and I have "wins support = yes" in smb.conf, but then from a Windows client I try to ping one of those hosts and it can't resolve the address. I have tried some combinations of "name resolve order" and setting "dns proxy" to yes, but it's the same (now I left "dns proxy" to no again). I can't see in the logs that another host is making itself the WINS server (that happened some time ago but now it doesn't) It resolves addresses of other hosts that appear in the Windows "Network neighborhood" and the address of the server from a Windows client, but there are other machines in the network that don't appear there (Linux machines that don't use the Samba server or even printers) I don't know if this is important, but netstat in the server says that port 1512 is not listening. Thanks in advance.
Hi Toni Do you have a DNS server? if not that might help you a lot. Venlig Hilsen (Best Regards) stud. med. Rune T?nnesen On Oct 04, 2006 10:27 AM, Toni Casueps <casueps@hotmail.com> wrote:> > We have a Samba server which acts mainly as file server, but we want > it to > resolve host names for local machines. I have written some IP-hostname > lines > both in /etc/hosts and /etc/samba/lmhosts, and I have "wins support > yes" > in smb.conf, but then from a Windows client I try to ping one of those > hosts > and it can't resolve the address. > > I have tried some combinations of "name resolve order" and setting > "dns > proxy" to yes, but it's the same (now I left "dns proxy" to no again). > I > can't see in the logs that another host is making itself the WINS > server > (that happened some time ago but now it doesn't) > > It resolves addresses of other hosts that appear in the Windows > "Network > neighborhood" and the address of the server from a Windows client, but > there > are other machines in the network that don't appear there (Linux > machines > that don't use the Samba server or even printers) > > I don't know if this is important, but netstat in the server says that > port > 1512 is not listening. > > Thanks in advance. > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
Hi,>>>We have a Samba server which acts mainly as file server, but we want itto>>>resolve host names for local machines. I have written some IP-hostnamelines>>>both in /etc/hosts and /etc/samba/lmhosts, and I have "wins support yes" >>>in smb.conf, but then from a Windows client I try to ping one of thosehosts>>>and it can't resolve the address.I don't think samba is designed to do the job of WINS/DNS which basically resolves the IP-hostname. The "/etc/hosts", "/etc/samba/lmhosts" and "wins support is basically for host operating system or for samba. I don't think you can get the hostname resolved through these entries from the client. The wins support options enables the host system to register itself in the WINS server. For client to resolve the IP-hostname you can either use WINS, DNS or edit the file "c:\windows\system32\drivers\etc\hosts" enter the IP and hostname in windows client and reload it ( i have forgotten the actual command to reload/purge). HTH Aravinda (Views expressed here are my personal opinion ONLY)
You can create a 'hosts' file, just like unix/linux hosts files in \windows\system32\drivers\etc and that may work for you. --Jesse -----Original Message----- From: samba-bounces+jesse.josserand=healthmarkets.com@lists.samba.org [mailto:samba-bounces+jesse.josserand=healthmarkets.com@lists.samba.org] On Behalf Of Aravinda Guzzar Sent: Wednesday, October 04, 2006 12:59 PM To: Toni Casueps Cc: samba@lists.samba.org Subject: Re: [Samba] PDC as wins server Hi,>>>We have a Samba server which acts mainly as file server, but we wantit to>>>resolve host names for local machines. I have written someIP-hostname lines>>>both in /etc/hosts and /etc/samba/lmhosts, and I have "wins support yes" >>>in smb.conf, but then from a Windows client I try to ping one ofthose hosts>>>and it can't resolve the address.I don't think samba is designed to do the job of WINS/DNS which basically resolves the IP-hostname. The "/etc/hosts", "/etc/samba/lmhosts" and "wins support is basically for host operating system or for samba. I don't think you can get the hostname resolved through these entries from the client. The wins support options enables the host system to register itself in the WINS server. For client to resolve the IP-hostname you can either use WINS, DNS or edit the file "c:\windows\system32\drivers\etc\hosts" enter the IP and hostname in windows client and reload it ( i have forgotten the actual command to reload/purge). HTH Aravinda (Views expressed here are my personal opinion ONLY) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba