Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to have wins.dat refreshed

Status
Not open for further replies.

apecross

IS-IT--Management
Jul 25, 2007
3
IT
Hi list.

I have a corporate LAN of type 192.168.0.0/24, and my laptop (running Windows XP) has the IP 192.168.0.100. In the LAN there is a samba machine (Debian woody) acting as WINS server (quite old: 2.2.3a-12.3).
By means of OpenVPN I can also connect from home to the same LAN, and my laptop is given IP 10.10.0.6.
Before I connected the first time, /var/lib/samba/wins.dat on the samba machine had records related to my laptop like these:
"APECROSS#00" 1185610309 192.168.0.100 64R
"APECROSS#03" 1185664827 192.168.0.100 64R
"APECROSS#20" 1185610309 192.168.0.100 64R
After that time, samba updated wins.dat in the following way:
"APECROSS#00" 1185610309 10.10.0.6 64R
"APECROSS#03" 1185664827 192.168.0.100 64R
"APECROSS#20" 1185610309 10.10.0.6 64R
I know that I could stop nmbd, edit the file and fix wrong data, then restart the deamon, but it would be more comfortable to have wins.dat automatically refreshed by samba e.g. every hour, so that records related to my resources are up-to-date.

Any hints?

Thanks
--Alessandro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top