Transitioning From Oracle® Solaris 10 to Oracle Solaris 11.2

Exit Print View

Updated: December 2014
 
 

Configuring Naming and Directory Services

In this release, the SMF repository is the primary repository for all naming services configuration. The previous behavior of modifying a particular file to manage naming services configuration no longer applies. For a list of the naming services that has migrated to SMF, see Table 8–2.

During an installation, the system undergoes a one time upgrade to convert any existing /etc network configuration files to their respective ipadm and dladm configurations. If necessary, you can use the nscfg command to import or export legacy name service configuration files into or out of the SMF repository. When a valid SMF configuration and corresponding Fault Management Resource Identifier (FMRI) is supplied, the nscfg command regenerates legacy naming service configuration files, for example, nsswitch.conf, resolv.conf, nscd.conf, into their legacy locations. See Importing Naming Services Configuration in Configuring and Administering Network Components in Oracle Solaris 11.2 and nscfg (1M) .


Note -  The persistent configuration of naming services through SMF applies to the fixed network configuration mode only and only when the DefaultFixed profile is active on the system. If you are using the reactive mode and the Automatic or another reactive profile is active on the system, you configure naming services in a Location profile by using the netcfg command and not through SMF. See Creating Locations in Configuring and Administering Network Components in Oracle Solaris 11.2 .

The following example shows how you would configure the Domain Name Service (DNS) by using the svccfg. After you set the various properties, you must enable and refresh the SMF service.

# svccfg -s dns/client setprop config/nameserver=net_address: 192.168.1.1
# svccfg -s dns/client setprop config/domain = astring: "myhost.org"
# svccfg -s name-service/switch setprop config/host = astring: "files dns"
# svcadm refresh name-service/switch
# svcadm refresh dns/client

You can also configure naming and directory SMF service properties interactively. For an example, see Configuring a DNS Client in Configuring and Administering Network Components in Oracle Solaris 11.2 .

See Chapter 4, Administering Naming and Directory Services on an Oracle Solaris Client, in Configuring and Administering Network Components in Oracle Solaris 11.2 .