Go to main content

man pages section 5: File Formats

Exit Print View

Updated: Thursday, June 13, 2019
 
 

defaultdomain(5)

Name

defaultdomain - specify host's domain name

Synopsis

svc:/network/nis/domain
/etc/defaultdomain

Description

The service svc:/network/nis/domain determines a host's domain name for direct use by the NIS name service. For the purposes of backwards compatibility, the service also generates the defaultdomain file.

The property group/property config/domainname represents the NIS domainname represented by /etc/defaultdomain.

The contents of defaultdomain consists of a single line containing a host's domain name.

Examples

Example 1 Setting Up domainname and Enabling the nis/domain Service

The following example sets up domainname and enables the nis/domain service:


% svccfg -s nis/domain setprop config/domainname = \
          hostname: nisdomain.example.com
% svccfg -s nis/domain:default refresh
% svcadm enable nis/domain

The service is not enabled by default. The nis/domain service sets up all the shared NIS configuration, of which domainname is the one mandatory configuration parameter.

See Also

uname(1), resolv.conf(5), ldap(7), ldapclient(8), ypbind(8), ypinit(8)

Notes

The defaultdomain file is created and modified by Oracle Solaris installation and configuration scripts. Only users knowledgeable of name service configuration should edit the file.