LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-16-2009, 11:40 AM   #1
luvlinux2009
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Rep: Reputation: 0
samba and WINS


Hello all,

I have some questions regarding samba's wins configuration in an environment where samba has been integrated with Windows 2003 Active Directory. We do not use WINS in our Active Directory environment and only use DNS.
We have 2 samba servers, let's say they are named samba1 and samba2. samba1 is running 3.0.33-3.7.el5_3.1 and samba2 is running 3.0.28a-1ubuntu4.8.

Both of their configuration regarding WINS:
Quote:
name resolve order = hosts lmhosts bcast
wins support = no
dns proxy = no
This seems to work fine but was wondering if there's a better configuration that I should be using.
If this is not an ideal configuration, should I configure one of the samba servers, let's say samba1 as WINS and thus, change the configuration on them as follows? Since we're not going to set WINS configuration on our Windows client machines, they won't register to WINS on samba server though:

change samba1's smb.conf:
Quote:
wins support = yes
dns proxy = yes
name resolve order = wins lmhosts hosts bcast
change samba2's smb.conf:
Quote:
wins server = IP of samba1
wins proxy = yes
dns proxy = yes
name resolve order = wins hosts lmhosts bcast
 
Old 10-04-2009, 09:20 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
would you not have the samba servers setup to use this:

Code:
name resolve order = wins dns hosts lmhosts bcast
It's something like that I have on mine.
 
Old 10-05-2009, 07:42 AM   #3
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
Wins is a seriously ugly, very chatty, and unpredictable system. If it's on the same subnet as your windows clients, chances are that the windows clients will see it and use it anyway.

We are using samba as a wins server where I work, and it's OK, but there are many oddities to it, not to mention it generates a ton of broadcasts.

To give you an idea of the pain you'll have to deal with, consider this: wins runs as part of samba, so the wins server uses samba's resolve order: wins (itself) lmhosts hosts bcast. But since it's running in *nix it'll actually pull from DNS as well, even without the dns in "name resolve order". What this means to you is, it has three places it can pull information from, /etc/hosts & dns for basic information, and lmhosts for detailed information, such as what services or role a server provides. This gets very confusing! If there is a conflict (differing information), sometimes wins will resolve a name, and sometimes it won't.

In a large environment, this happens more times than you'd like. One admin adds a hostname/ip pair to wins, another one adds it to DNS or /etc/hosts. Sometime later, that IP is re-used by another system, or that system is given a new IP. Wins now goes nuts, and sometimes gives an IP, and sometimes claims it knows nothing.

After having that happen once, I tested it a few ways, and found that wins is very fragile. If you can avoid it, do.
 
Old 10-06-2009, 11:09 AM   #4
luvlinux2009
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Original Poster
Rep: Reputation: 0
If I put dns to the name resolve order, it generates an error in the log and doesn't recognize it.
We're not using WINS and it works but was just wondering if my current configuration can be setup better to handle name resolution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WINS name in samba connection in MC avallach Linux - Software 0 01-07-2007 07:04 AM
Samba WINS multisubnet. How do you do yours? humbletech99 Linux - Networking 0 01-01-2007 03:52 PM
WINS on Samba humbletech99 Linux - Networking 1 05-23-2006 09:58 PM
samba and wins hoover93 Linux - Networking 0 08-16-2004 04:25 PM
Samba WINS Server rmarvin Linux - Networking 0 10-24-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration