Go to main content

Working With Oracle® Solaris 11.3 Directory and Naming Services: DNS and NIS

Exit Print View

Updated: October 2017

How to Use a Legacy nsswitch.conf File

Use this procedure if your existing naming switch configuration still uses the nsswitch.conf file. This procedure shows how to migrate your naming switch configurations from the file to SMF, which is the default method to configure naming switch in Oracle Solaris.

  1. Become an administrator.

    For more information about obtaining the appropriate rights to perform specific tasks, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Copy the nsswitch.conf file to a new system.

    Make sure to name the file /etc/nsswitch.conf.

  3. Load the information from the file into the SMF repository.
    # nscfg import -f svc:/system/name-service/switch:default
  4. Refresh the service for the name service switch.
    # svcadm refresh name-service/switch:default