How to find the DSFW domain name

  • 7006307
  • 18-Jun-2010
  • 27-Apr-2012


Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 2
Novell Domain Services for Windows


How do I know what the DSFW domain name is besides looking in the /etc/hosts file?


Here are two ways to tell the DSFW domain name
  1. Look in the /etc/opt/novell/xad/xad.ini for the Root Domain name.  An easy way to do this is cat /etc/opt/novell/xad/xad.ini | grep -i Root\ Domain
  2. Do a ldapsearch for objectClass=DomainDNS and the defaultNamingContext attirbute.
For the ldapsearch you can reference TID 7003070 for doing ldapsearches for DSFW. 
You can export the LDAPCONF before doing the ldapsearch as in KB 7003070 suggests or run the following command:

LDAPCONF=/etc/opt/novell/xad/openldap/ldap.conf ldapsearch -Y EXTERNAL -b "" -s base objectClass=DomainDNS defaultNamingContext

Example of what is returned for domain named that is mapped to o=novell

# extended LDIF
# LDAPv3
# base <> with scope baseObject
# filter: objectClass=DomainDNS
# requesting: defaultNamingContext

defaultNamingContext: DC=novell,DC=com

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1