[Samba] DNS problem?

awilliam at mdah.state.ms.us awilliam at mdah.state.ms.us
Mon Nov 19 22:07:10 GMT 2007


I'm trying to join an XP SP2 PC called testpc to a test environment.  Its
network settings are statically set.  IP address is 10.8.3.209.  I have a
PDC called gomer.mdah.state.ms.us w/ samba 3.0.26a and IP address is
10.8.3.37.  On test PC I right click on my computer, properties, computer
name, change from workgroup WORKGROUP to domain ADAMSTEST.

But I get the error:

Note: This information is intended for a network administrator.  If you
are not your network's administrator, notify the administrator that you
received this information, which has been recorded in the file
C:\WINDOWS\debug\dcdiag.txt.

The domain name ADAMSTEST might be a NetBIOS domain name.  If this is the
case, verify that the domain name is properly registered with WINS.

If you are certain that the name is not a NetBIOS domain name, then the
following information can help you troubleshoot your DNS configuration.

The following error occurred when DNS was queried for the service location
(SRV) resource record used to locate a domain controller for domain
ADAMSTEST:

Note: This information is intended for a network administrator.  If you
are not your network's administrator, notify the administrator that you
received this information, which has been recorded in the file
C:\WINDOWS\debug\dcdiag.txt.

The domain name ADAMSTEST might be a NetBIOS domain name.  If this is the
case, verify that the domain name is properly registered with WINS.

If you are certain that the name is not a NetBIOS domain name, then the
following information can help you troubleshoot your DNS configuration.

The following error occurred when DNS was queried for the service location
(SRV) resource record used to locate a domain controller for domain
ADAMSTEST:

The error was: "DNS name does not exist."
(error code 0x0000232B RCODE_NAME_ERROR)

The query was for the SRV record for _ldap._tcp.dc._msdcs.ADAMSTEST

Common causes of this error include the following:

- The DNS SRV record is not registered in DNS.

- One or more of the following zones do not include delegation to its
child zone:

ADAMSTEST
. (the root zone)

For information about correcting this problem, click Help.


I've googled the error and people say to make sure your DNS is fine, you
can ping, turn off windows firewall, etc.  I've done all that  I don't see
any problems with my configuration.  testpc can ping
gomer.mdah.state.ms.us fine.

and dcdiag.txt contains that message above.  My samba configuration seems
correct:

[root at gomer ~]# testparm
Load smb config files from /etc/samba/smb.conf
WARNING: The "printer admin" option is deprecated
Processing section "[homes]"
Processing section "[accounts]"
Processing section "[netlogon]"
Processing section "[profiles]"
Processing section "[print$]"
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

[global]
        unix charset = LOCALE
        workgroup = ADAMSTEST
        server string = Samba Server %v on gomer
        interfaces = 10.8.3.37/24, 127.0.0.1/8
        bind interfaces only = Yes
        update encrypted = Yes
        passdb backend = ldapsam:ldap://gomer.mdah.state.ms.us
        username map = /etc/samba/smbusers
        log level = 10
        syslog = 0
        log file = /var/log/samba/%m
        max log size = 50
        name resolve order = wins bcast hosts
        time server = Yes
        printcap name = CUPS
        show add printer wizard = No
        add user script = /usr/sbin/smbldap-useradd -a -m "%u"
        delete user script = /usr/sbin/smbldap-userdel "%u"
        add group script = /usr/sbin/smbldap-groupadd -p "%g"
        delete group script = /usr/sbin/smbldap-groupdel "%g"
        add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
        delete user from group script = /usr/sbin/smbldap-groupmod -x "%u"
"%g"
        set primary group script = /usr/sbin/smbldap-groupmod -g "%g" "%u"
        add machine script = /usr/sbin/smbldap-useradd -w "%u"
        logon script = scripts\logon.bat
        logon path = \\%L\profiles\%U
        logon drive = X:
        domain logons = Yes
        preferred master = Yes
        wins support = Yes
        ldap admin dn = cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
        ldap group suffix = ou=Group
        ldap idmap suffix = ou=Idmap
        ldap machine suffix = ou=People
        ldap passwd sync = Yes
        ldap suffix = dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
        ldap user suffix = ou=People
        idmap backend = ldap:ldap://gomer.mdah.state.ms.us
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template homedir = /home/winnt/%D/%U
        template shell = /bin/bash
        winbind separator = +
        winbind enum users = Yes
        winbind enum groups = Yes
        printer admin = root, awilliam
        hosts allow = 10.8.
        map acl inherit = Yes
        printing = cups
        print command =
        lpq command = %p
        lprm command =

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browseable = No

[accounts]
        comment = Accounting Files
        path = /data/accounts
        read only = No

[netlogon]
        comment = network logon service
        path = /var/lib/samba/netlogon
        guest ok = Yes
        locking = No

[profiles]
        comment = Profile Share
        path = /var/lib/samba/profiles
        read only = No
        profile acls = Yes

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = root, awilliam


[root at gomer ~]# ldapsearch -D
'cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us' -b
"uid=testpc$,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us" -w
xxxxxxxxxxx -x
# extended LDIF
#
# LDAPv3
# base <uid=testpc$,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us> with
scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# testpc$, People, gomer.mdah.state.ms.us
dn: uid=testpc$,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
objectClass: sambaSamAccount
objectClass: posixAccount
objectClass: account
objectClass: top
uid: testpc$
uidNumber: 1000
sambaSID: S-1-0-1
gidNumber: 514
homeDirectory: /dev/null
cn: testpc$
sambaLMPassword: xxxxxxxxxxxxxxxxxxx
sambaNTPassword: xxxxxxxxxxxxxxxxxxx
sambaPasswordHistory:
00000000000000000000000000000000000000000000000000000000
 00000000
sambaPwdLastSet: 1195509942
sambaAcctFlags: [U          ]
userPassword:: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1
[root at gomer ~]#



any ideas?





More information about the samba mailing list