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 Change the Source for All Naming Databases

This procedure describes how to define a common source for all the databases that are used by the name service for lookups. By default, the common source is files. You can use this procedure to add another source.

  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. (Optional) Display the current configuration of the default property.
    # svccfg -s name-service/switch listprop config/default
    config/default              astring             files
  3. Add NIS as a default source.
    # svccfg -s system/name-service/switch:default
    svc:/system/name-service/switch:default> setprop config/default = astring: "files nis"
    svc:/system/name-service/switch:default> quit
  4. Refresh the service for the name service switch.
    # svcadm refresh name-service/switch:default