Skip Navigation Links | |
Exit Print View | |
man pages section 4: File Formats Oracle Solaris 11 Information Library |
- specify host's domain name
svc:/network/nis/domain
/etc/defaultdomain
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.
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.
uname(1), ldapclient(1M), ypbind(1M), ypinit(1M), resolv.conf(4), ldap(5)
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.