Installing Oracle® Solaris 11.2 Systems

Exit Print View

Updated: July 2014
 
 

Configuring Name Service

Use the sysconfig create-profile command with the naming_services grouping to generate a valid profile that configures DNS, NIS, and LDAP clients and name service switch.

# sysconfig create-profile -g naming_services -o sc_ns.xml

    The naming_services grouping includes two SMF services.

  • The svc:/system/name-service/switch service manages the naming service.

  • The svc:/network/dns/client service manages the DNS service.

The svc:/system/name-service/switch SMF service configures the name service switch. This service is initially disabled with property values that do not result in any system configuration. See the examples in Specifying Name Service Configuration. The config property group of the svc:/system/name-service/switch service includes the properties listed in the following table.

Table 11-8  config Properties of the svc:/system/name-service/switch Property Group
Property
Type
Required
Description
default
astring
optional
default configuration database entry
bootparam
astring
optional
override configuration for the bootparams database
ethers
astring
optional
override configuration for the ethers database
group
astring
optional
override configuration for the group database
host
astring
optional
override configuration for the host database
netmask
astring
optional
override configuration for the netmask database
network
astring
optional
override configuration for the network database
password
astring
optional
override configuration for the passwd database
protocol
astring
optional
override configuration for the protocol database
rpc
astring
optional
override configuration for the rpc database

The svc:/network/dns/client service supports the configuration of a DNS client. The service defines one property group: config. The service uses its properties to construct a configuration information for the DNS service. See the examples in Specifying Name Service Configuration.

The config property group contains the properties listed in the following table.

Table 11-9  config Property Group Properties
Property
Type
Required
Description
domain
astring
optional
Local domain name. Used to construct the domain directive in resolv.conf.
nameserver
net_address_list
required
List of IPv4 and IPv6 addresses. Used to construct the nameserver directives in resolv.conf.
search
astring_list
optional
List of domain values for the search list for host name lookup. Used to construct the search directive in resolv.conf.