Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Samba WINS server gives old IP address?

Posted on 2004-08-17
8
296 Views
Last Modified: 2013-12-19
I have a WORKGROUP Windows network with 2 Samba servers, PRIMARY and BACKUP.  PRIMARY is acting as a file server and a WINS server.  BACKUP is rigged to win browse master elections.  Typically everything works just fine.
 
The DHCP server is set to distribute the WINS server address.

There is a Windows 2000 server (SERVER) that was set to get an address with DHCP for some reason.  This makes it hard to monitor as its address changes so I want to move it to a static address.

When I change the IP address on SERVER, windows clients can non longer resolve it by name.  SERVER is set to register with the WINS server.  Many restarts.  nbtstat -RR, etc.

BACKUP is not set to use a WINS server.  It resolves via broadcast and smbclient -L //SERVER works great.

PRIMARY cannot resolve SERVER.  It gets the old address SERVER was at (10.0.0.150) when it was using a DHCP lease.  I suspect that's why the client machines get the same problem address.

Running smbclient under debug mode shows that it's getting its address from its own (local) WINS server.  I've deleted the contents of /var/cache/samba with samba stopped, to no avail.  There isn't an lmhosts file on the samba server, nor is there an entry for SERVER in /etc/hosts.  I tried adding a DNS entry for server but that didn't help, even with dns proxy set to be on.

PRIMARY can talk to SERVER by IP just fine, e.g. smbclient -I 10.0.0.10 -L //SERVER

'nmblookup SERVER' on PRIMARY returns the old address.

Exploring with nmblookup and nbtstat shows no additional WINS servers.  I've tried forcing elections to no avail.

So, somehow PRIMARY is getting the old address from somewhere, but I'm not seeing who could be offering that information or why it would trust that over the machine's own registration.  I don't actually have any reason to believe SERVER is registering via WINS successfully, but I don't have any reason to belive it's failing either.  There is nothing noted in SERVER's Event Log.

For now I've assigned SERVER a static lease to keep it still, but I'd like to get it out of the DHCP range.

Thanks for any insight.
0
Comment
Question by:bill_mcgonigle
  • 3
  • 3
8 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 11826478
hi bill_mcgonigle,

it sounds that your samba based WINS servers have out-of-date records for the SERVER, just please delete the existing records for SERVER from the database of WINS and the active lease table of DHCP, then change SERVER's IP as you need.

hope it helps,
bbao
0
 

Author Comment

by:bill_mcgonigle
ID: 11826636
Hi, bbao,

   To the best of my knowledge that lives in /var/cache/samba/wins.dat, which was deleted.  Mysteriously, it's being repopulated with the wrong information.

Thanks,
-Bill
0
 
LVL 37

Expert Comment

by:bbao
ID: 11826651
you have a backup WINS server, the wrong information is reduplicated from the backup one? are you sure that both WINS databases are deleted?
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:bill_mcgonigle
ID: 11826758
There's only one WINS server to the best of my knowledge.  Is there an implicit backup WINS server if you don't configure one?  There's certainly nothing on PRIMARY's configuration about replicating from any other WINS servers.
0
 

Author Comment

by:bill_mcgonigle
ID: 12064693
Thanks for the comments - this turned out to be a full filesystem on the WINS server, which was not able to record the new entry so it kept handing out the last one it had written to cache.
0
 
LVL 37

Expert Comment

by:bbao
ID: 12066788
hehe so strange reason. people always foget to check the most common things such as free space of the disk! ;)) i would recommend to make this question as PAQ with points refunded. regards,
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 12098435
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
Resolve DNS query failed errors for Exchange
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question