Solved

Samba WINS server gives old IP address?

Posted on 2004-08-17
8
288 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:Bing CISM / CISSP
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:Bing CISM / CISSP
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

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:Bing CISM / CISSP
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now