You need to make a permanent modification to a machine’s naming service. You need to change naming
service from files to LDAP. Which two alternative methods would accomplish this task?
A.
Modify the existing /etc/nsswitch.conf file and execute:
# nscfg import -f name-service/switch
B.
Modify the existing /etc/nsswitch-conf file and execute:
# netcfg import name-service/switch
# svcadm refresh name-service/switch
C.
Modify the existing /etc/nsswitch.conf file and execute:
# svcadm restart milestone/self-assembly
D.
Use the netcfg command to modify the location profile for the DefaultFixad network configuration profile.
E.
Use the svccfg command to set config/* properties in the name-service/switch service:
# svcadm refresh name-service/switch
# svcadm restart name-service/switch
Explanation:
A:
* nscfg
– import, export name service configurations
* subcommand import
import [-fvq] FMRI
If none of the SMF repository properties for the specified FMRI are currently populated, import the legacy
configuration files associated with the specified FMRI into the SMF repository.
* Example: Importing DNS Client Configuration
The following command imports the DNS client configuration, stored in resolv.conf, into the SMF repository.
# nscfg import svc:/network/dns/client:default
* svcadm– manipulate service instances
D: netcfg
– create and modify network configuration profiles
The netcfg utility manipulates system network configuration profiles. netcfg can be invoked interactively, with an
individual subcommand, or by specifying a command file that contains a series of subcommands.
/ netcfg location properties include:
/ nameservices: enum value list: files | dns | nis | ldapSpecifies the name services that should be configured, such as DNS, NIS, and LDAP.
Incorrect:
Not B: netcfg has no subcommand import.
Note:
* Each workstation has a nsswitch.conf file in its /etc directory. Each line of that file identifies a particular type of
network information, such as host, password, and group, followed by one or more sources, such as NIS+
tables, NIS maps, the DNS hosts table, or local /etc, where the client is to look for that information.
* The Solaris platform provides the following naming services.
/ DNS, the Domain Name System
/ /etc files, the original UNIX naming system
/ NIS, the Network Information Service
/ NIS+, the Network Information Service Plus
/ LDAP, the Lightweight Directory Access Protocol