LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2008, 09:42 AM   #1
wbacon
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Linux/Samba PDC can't resolve windows names


Every few months I go searching for the answer to my "eternal Linux question" and my most recent odyssey has brought me here. Maybe someone will finally show me the way...

My LAN has a single linux/samba server as a Primary Domain Controller (as well as a file server), and several windows workstations. The workstations get their IP addresses from a Linksys cable router DHCP server.

This system continues to work as required to provide login authentication, and file shares, and has done so for a long time (years). In fact I am administering a half dozen such LANS that all have the same general characteristics.

However, I've never been able to get the linux machine to resolve the NETBios names of the windows machines. While this doesn't interfere with the primary goal of providing services to the windows machines, it does make administration more cumbersome.

Every time I find a "solution" to this problem in a book or newsgroup, I find that I'm already set up that way, or that the change doesn't help. Most recently I found a post in this forum that many said had solved their NETBios name resolution problem (adding "wins" to the hosts line of /etc/nsswitch.conf).

But it didn't change anything on my network.
.
I can see the Internet through the DSL router, I can ping the windows machines by IP address But "ping NETBiosname" returns "Unknown host NETBiosname", and "nmblookup NETBiosname" returns "name_query failed to find name NETBiosname"

Below is the network configuration on the Linux server. The windows machies have 192.168.0.99 added as a WINS server in their LAN configuration, otherwise they are just straight DHCP clients, and they can see the Linux machine as well as each other by name.

If you've read this far, you have my thanks!


Netgear RTL-8169 Gigabit Ethernet Card
static IP: 192.168.0.99
subnet: 255.255.255.0
hostname: Wizard
domain: BDCO
Name Server 1: 10.231.233.1
Name Server 2: 12.127.17.71
Default Gateway: 192.168.0.1 (Linksys router)

smb.conf:

# Wizard
#
# BDCO PDC
[global]
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
admin users = @root
browseable = Yes
domain logons = Yes
domain master = Yes
encrypt passwords = Yes
guest ok = no
local master = Yes
logon drive = C:
logon path = \\%L\profiles\%U
logon script = bdconet.cmd
map to guest = Bad User
max protocol = NT
name resolve order = wins bcast lmhosts host
netbios name = WIZARD
os level = 65
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
preferred master = Yes
restrict anonymous = no
security = user
server signing = Auto
smb passwd file = /etc/samba/smbpasswd
unix password sync = yes
username map = /etc/samba/smbusers
wins support = yes
workgroup = BDCO

[netlogon]
path = /var/lib/samba/netlogon
write list = @root
browseable = no
comment = Network Logon Service

[profiles]
comment = Network Profiles Service
path = /var/lib/samba/profiles
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
browseable = no

[root]
path = /
read only = no
browseable = no
valid users = @ntadmin

[BDCO]
path = /WIZbang2/BDCO
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
force group = +users
read only = no
browseable = yes
valid users = @users,@ntadmin

[personal]
path = /WIZbang1/personal
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
force group = +users
read only = no
browseable = yes
valid users = @users,@ntadmin

[sysback]
path = /WIZbang1/backup/sysback
read only = no
browseable = no
valid users = @ntadmin
 
  


Reply

Tags
dhcp, samba



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
samba pdc trust with windows 2003 server pdc samba_pk Linux - Networking 1 06-08-2007 01:22 AM
Setting up Samba 3.0 as a PDC for windows/linux. Mike@Work Linux - Networking 3 02-16-2004 06:44 AM
Linux gateway computer can't resolve names krsnendu Linux - Networking 4 12-17-2003 09:30 AM
Samba and LDAP in Linux to authenticate on Windows 2000 PDC Linh Linux - Networking 2 05-09-2003 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:38 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