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) .
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 .