[Samba] wins server name resolution fails

Björn Urbanek BjoernUrbanek at gmx.de
Mon Feb 12 13:00:13 GMT 2007


Hello together!

I have an problem with the wins server, based on a Gentoo distribution 
with Samba 3.0.24.

The problem is following:

After an restart of samba everything works fine, but after an undefined 
time period its not possible to make an nmblookup for some other computers.

The samba server is also configured as wins server.


an cut from the smb.conf:
......
   domain master = Yes
   local master = yes
   preferred master = Yes
   os level = 255

   wins support = yes
   #name resolve order = lmhosts wins hosts bcast
   name resolve order = lmhosts wins
   dns proxy = yes

.....

Here the effect:

smbsrv # nmblookup -U 192.168.1.10 -R 'fileserver'
querying fileserver on 192.168.1.10
192.168.1.20 fileserver<00>
smbsrv # nmblookup -U 192.168.1.10 -R 'vmware'
querying vmware on 192.168.1.10
192.168.1.15 vmware<00>
...

But later the same questions at the same server aren't successful:


smbsrv # nmblookup -U 192.168.1.10 -R 'fileserver'
querying fileserver on 192.168.1.10
name_query failed to find name fileserver
smbsrv # nmblookup -U 192.168.1.10 -R 'vmware'
querying vmware on 192.168.1.10
name_query failed to find name vmware


First question: Why can't find the wins-server some other servers after 
an time period?

Second question: Why does  samba don't make an dns lookup after 
mnblookup was failed?



Here some interesting facts about the log.nmbd:

DNS successfull:

 wins_process_name_query: name query for name FILESERVER<00> from IP 
192.168.1.10
[2007/02/09 01:35:06, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1956)
 wins_process_name_query: name query for name FILESERVER<00> not found - 
doing dns lookup.
[2007/02/09 01:35:06, 3] nmbd/asyncdns.c:queue_dns_query(310)
 added DNS query for FILESERVER<00>
[2007/02/09 01:35:06, 3] nmbd/asyncdns.c:add_dns_result(43)
 add_dns_result: DNS gave answer for FILESERVER of 192.168.1.20
[2007/02/09 01:35:06, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
 add_name_to_subnet: Added netbios name FILESERVER<00> with first IP 
192.168.1.20 ttl=7200 nb_flags= 4 to subnet WINS_SERVER_SUBNET
[2007/02/09 01:35:06, 3] nmbd/asyncdns.c:run_dns_queue(227)
 DNS calling send_wins_name_query_response



but later:


[2007/02/09 09:13:38, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1892)
 wins_process_name_query: name query for name FILESERVER<00> from IP 
192.168.1.10
[2007/02/09 09:13:38, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1956)
 wins_process_name_query: name query for name FILESERVER<00> not found - 
doing dns lookup.
[2007/02/09 09:13:38, 3] nmbd/asyncdns.c:queue_dns_query(310)
 added DNS query for FILESERVER<00>
[2007/02/09 09:13:40, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1892)
 wins_process_name_query: name query for name FILESERVER<00> from IP 
192.168.1.10
[2007/02/09 09:13:40, 3] 
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1956)
 wins_process_name_query: name query for name FILESERVER<00> not found - 
doing dns lookup.
[2007/02/09 09:13:40, 3] nmbd/asyncdns.c:queue_dns_query(310)
 added DNS query for FILESERVER<00>


It seems that he don't find the entry for FILESERVER in the database.


Thanks a lot for an answer or an helpful idea about this problem.

Björn



More information about the samba mailing list