[Samba] Manually expire duplicate netbios name

Alexander 'Leo' Bergolth leo at strike.wu-wien.ac.at
Sun Mar 1 18:18:48 GMT 2009


Hi!

Yesterday, after migrating to a new server, I accidentally started an
identically configured smbd and nmbd on the old machine.

Since then, there are two netbios entries, even though the first host
(192.168.60.5) is down since yesterday:

# nmblookup -U localhost -R 'SAMBA'
querying SAMBA on 127.0.0.1
192.168.60.5 SAMBA<00>
192.168.60.3 SAMBA<00>

I've already tried to remove NBT/SAMBA#20\0 from
/var/lib/samba/gencache.tdb using tdbtool. Besides, I deleted suspicious
entried from wins.dat. (Both with or without nmbd running.)
Unfortunately I don't know how to remove them from wins.tdb.

When restarting nmbd, it complains that there is already a domain master
browser, but it queries it's own wins-server (192.168.60.3). (See below.)

Any hints on how I can manually delete the wrong ip address from the
netbios-cache / wins server?

Thanks,
--leo

Mar  1 18:58:08 samba nmbd[23487]: [2009/03/01 18:58:08,  0]
nmbd/asyncdns.c:start_async_dns(155)
Mar  1 18:58:08 samba nmbd[23487]:   started asyncdns process 23488
Mar  1 18:58:08 samba nmbd[23487]: [2009/03/01 18:58:08,  0]
nmbd/nmbd_logonnames.c:add_logon_names(160)
Mar  1 18:58:08 samba nmbd[23487]:   add_domain_logon_names:
Mar  1 18:58:08 samba nmbd[23487]:   Attempting to become logon server
for workgroup RK_KLBG on subnet 192.168.60.3
Mar  1 18:58:08 samba nmbd[23487]: [2009/03/01 18:58:08,  0]
nmbd/nmbd_logonnames.c:add_logon_names(160)
Mar  1 18:58:08 samba nmbd[23487]:   add_domain_logon_names:
Mar  1 18:58:08 samba nmbd[23487]:   Attempting to become logon server
for workgroup RK_KLBG on subnet UNICAST_SUBNET
Mar  1 18:58:08 samba nmbd[23487]: [2009/03/01 18:58:08,  0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(336)
Mar  1 18:58:08 samba nmbd[23487]:   become_domain_master_browser_wins:
Mar  1 18:58:08 samba nmbd[23487]:   Attempting to become domain master
browser on workgroup RK_KLBG, subnet UNICAST_SUBNET.
Mar  1 18:58:08 samba nmbd[23487]: [2009/03/01 18:58:08,  0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(350)
Mar  1 18:58:08 samba nmbd[23487]:   become_domain_master_browser_wins:
querying WINS server from IP 192.168.60.3 for domain master browser name
RK_KLBG<1b> on workgroup RK_KLBG
Mar  1 18:58:08 samba nmbd[23487]: [2009/03/01 18:58:08,  0]
nmbd/nmbd_become_dmb.c:become_domain_master_query_success(234)
Mar  1 18:58:08 samba nmbd[23487]:   become_domain_master_query_success:
Mar  1 18:58:08 samba nmbd[23487]:   There is already a domain master
browser at IP 192.168.60.5 for workgroup RK_KLBG registered on subnet
UNICAST_SUBNET.
Mar  1 18:58:08 samba nmbd[23487]: [2009/03/01 18:58:08,  0]
nmbd/nmbd_logonnames.c:become_logon_server_success(121)
Mar  1 18:58:08 samba nmbd[23487]:   become_logon_server_success: Samba
is now a logon server for workgroup RK_KLBG on subnet UNICAST_SUBNET
Mar  1 18:58:12 samba nmbd[23487]: [2009/03/01 18:58:12,  0]
nmbd/nmbd_logonnames.c:become_logon_server_success(121)
Mar  1 18:58:12 samba nmbd[23487]:   become_logon_server_success: Samba
is now a logon server for workgroup RK_KLBG on subnet 192.168.60.3

-- 
e-mail   ::: Leo.Bergolth (at) wu-wien.ac.at
fax      ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria



More information about the samba mailing list