[Samba] Re: WINS not updating after swapping network connections

Michael Keightley Michael.Keightley at quadstone.com
Thu Apr 15 13:22:22 GMT 2004


On Thu, Apr 15, 2004 at 09:06:34AM -0400, Chad Vincent wrote:
> I had the exact same problem when I changed from dynamic IP to Static on 
> the server itself.  It added the new IP address AFTER the old one in 
> wins.dat, and only reported the first back to the clients.
> 
> Try shutting down Samba, deleting wins.dat (May be in either 
> /var/cache/samba/ or /var/lib/samba/ ) then starting Samba up again.  Your 
> WINS file will be rebuilt as the clients re-register their addresses.  How 
> to actually get it to change on the fly, however, is anybody's guess, as it 
> will re-write the file as-is if you delete / change it while SAMBA is 
> running.
> 
> It was suggested that it may be a corrupted file, so just deleting it and 
> letting it be re-built may fix the problem, too.
Could we maybe get round using WINS by using Dynamic DNS so the Netbios name
always matches the IP address?  Then change "name resolve order" so it used DNS
before WINS.  We use Bind 9 and ISC DHCP v3 already so it is possible to setup.
Or am I talking rubbish?


Michaek
> 
> At 12:01 PM 4/15/2004 +0000, you wrote:
> >From: Michael Keightley <Michael.Keightley at quadstone.com>
> >Precedence: list
> >Subject: [Samba] WINS not updating after swapping network connections
> >Date: Thu, 15 Apr 2004 12:54:38 +0100
> >To: samba at lists.samba.org
> >Reply-To: Michael Keightley <Michael.Keightley at quadstone.com>
> >Message-ID: <20040415115438.GA8516 at quadstone.com>
> >Content-Type: text/plain; charset=us-ascii
> >MIME-Version: 1.0
> >Message: 18
> >
> >
> >Our domain controller is running Samba 2.2.8a on Solaris 8.
> >We have XP laptops.  We swap between a builtin network card, docking port 
> >and
> >wireless card.  All of these have separate IP addresses.
> >If I say, boot up with the wireless card, then remove it and use the 
> >builtin
> >network card, the IP address in wins.dat on the server doesn't change.  It
> >still has the IP address of the wireless card.  It means you can't browse 
> >this
> >machine.  Our backup software (BackupPC) also stops working.
> >Should wins.dat not get updated when a machine changes IP address?
> >
> >Below is part of our smb.conf file:
> >
> >
> >[global]
> >  workgroup = SAMBA
> >  hosts allow = 194.80.198. 192.168.191. 192.168.198. 127.
> >  interfaces = 194.80.198.61/255.255.255.128 192.168.191.61/255.255.255.0 
> >192.168.193.61/255.255.255.0
> >  log file = /var/log/samba/%m.log
> >  load printers = yes
> >  printing = cups
> >  printcap name = cups
> >  case sensitive = no
> >  preserve case = yes
> >  short preserve case = yes
> >  domain master = yes
> >  domain logons = yes
> >  local master = yes
> >  preferred master = yes
> >  name resolve order = wins lmhosts host bcast
> >  wins support = yes
> >  os level = 65
> >  encrypt passwords = yes
> >  nis homedir = true
> >  security = user
> >  guest account = nobody
> >  homedir map = auto_home
> >  logon script = netlogon.bat
> >  logon path = \\%N\profile\%a\%U
> >  logon drive = q:
> >  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 
> >  SO_RCVBUF=16384
> >
> >
> >
> >Michael
> 
> Chad Vincent
> Owner
> RhiannonWEB
> Phone: 330-283-4681 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
Michael Keightley <Michael.Keightley at quadstone.com>    Tel: +44 131 240 3137
Systems Manager, Quadstone Limited,                    Fax: +44 131 220 4492
16 Chester Street, Edinburgh EH3 7RA, Scotland         http://www.quadstone.com


More information about the samba mailing list