Example: air traffic controller

Configuring a DNS client and the Name ... - …

Configuring a DNS client and the name Service switch in Solaris : Tim WortThis paper examines two methods used to configure and modify the DNS client configuration on a Solaris 11 host. These methods work for release 11/11, and The DNS client SMF service contains a number of properties that are used to define the DNS client configuration, these properties are used by the service to generate the / file. Additionally the name Service SwitchSMF service defines properties that generates the / the svc:/network/dns/ client :default service has never been configured on the system you can copy a existing / file and run the following command:root@solaris:~# nscfg import dns/ client The command adds the properties values used to create the / to the svc:/network/dns/ client :default service.

Configuring a DNS client and the Name Service Switch in Solaris 11. Author: Tim Wort This paper examines two methods used to configure and modify the DNS client configuration on a

Tags:

  Services, Name, Switch, Clients, Sailor, Configuring, Wort, Configuring a dns client and, Tim wort, Name service switch in solaris

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Configuring a DNS client and the Name ... - …

1 Configuring a DNS client and the name Service switch in Solaris : Tim WortThis paper examines two methods used to configure and modify the DNS client configuration on a Solaris 11 host. These methods work for release 11/11, and The DNS client SMF service contains a number of properties that are used to define the DNS client configuration, these properties are used by the service to generate the / file. Additionally the name Service SwitchSMF service defines properties that generates the / the svc:/network/dns/ client :default service has never been configured on the system you can copy a existing / file and run the following command:root@solaris:~# nscfg import dns/ client The command adds the properties values used to create the / to the svc:/network/dns/ client :default service.

2 The administrator then refreshes and restarts the service, or reboots the @solaris:~# svcadm refresh dns/clientroot@solaris:~# svcadm restart dns/clientSimilarly for the frst time configuration of the name Service switch service, copy a existing / file and run the following command:root@solaris:~# nscfg import name -service/switchThen refresh and restart the svc:/system/ name -service/ switch :default service, or the services have been configured they can be modified by making changes to the file or the file and use nscfg command with the -f option:root@solaris:~# nscfg import -f dns/clientroot@solaris:~# nscfg import name -service/switchThen refresh and restart the services or a DNS client and name Service switch manually in Solaris Solaris 11 the / is automatically populated by thedns/ client service and manual edits will be lost when thedns/ client service is started or set values for the / administrators must set properties in thedns/ client listing of the default / for a Solaris 11 instance:tim@solaris:~$ cat / ## Copyright (c) 2011, Oracle and/or its affiliates.

3 All rights reserved.### _AUTOGENERATED_FROM_SMF_V1_## WARNING: THIS FILE GENERATED FROM SMF DATA.# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.# See (4) for use the svccfg command to modify the svc:/network/dns/ client service:tim@solaris:~$ svccfg -s dns/clientsvc:/network/dns/ client > listprop configconfig applicationconfig/value_authorization astring net_address the config/nameserver properties and list the results:svc:/network/dns/ client > setprop config/nameserver = ( )svc:/network/dns/ client > listprop configconfig applicationconfig/value_authorization astring net_address the property config/search and the property config/domain are set and the results listed:svc:/network/dns/ client > setprop config/search = :/network/dns/ client > setprop config/domain =.

4 /network/dns/ client > listprop configconfig applicationconfig/value_authorization astring net_address astring astring :/network/dns/ client > exitFinally the dns/ client is refreshed and restarted:tim@solaris:~$ svcadm refresh dns/clienttim@solaris:~$ svcadm restart dns/clientNow verify it all worked:tim@solaris:~$ cat / ## Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.### _AUTOGENERATED_FROM_SMF_V1_## WARNING: THIS FILE GENERATED FROM SMF DATA.# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.# See (4) for the svc:/system/ name -service/ switch service is the / file has been deprecated and the configuration of the nameservice switch is preformed by setting service properties in the svc:/system/ name -service/ switch service.

5 In the following example the svccfg command is used to configure properties for the databases in the name Service switch service, then individual databases (hosts and ipnodes) are reset to add a dnssearch:tim@solaris:~$ svccfg -s name -service/switchsvc:/system/ name -serv ice/ switch > setprop config/default = filessvc:/system/ name -service/ switch > setprop config/host = "files dns"svc:/system/ name -service/ switch > setprop config/ipnode = astring: "files dns"svc:/system/ name -service/ switch > exittim@solaris:~$ svcadm refresh name -service/switchtim@solaris:~$ svcadm restart name -service/switchNow the / file is examined to confirm the configuration:tim@solaris:~$ more / ## Copyright (c) 1991, 2011, Oracle and/or its affiliates. All rights reserved.### _AUTOGENERATED_FROM_SMF_V1_## WARNING: THIS FILE GENERATED FROM SMF DATA.

6 # DO NOT EDIT THIS FILE. EDITS WILL BE LOST.# See (4) for : filesgroup: fileshosts: files dnsipnodes: files dnsnetworks: filesprotocols: filesrpc: filesethers: filesnetmasks: filesbootparams: files--More--(69%)^CNote: See the (4) and (4) man pages for other properties that can beconfigured for each service. See the nscfg(1M) man page for the name services that can be configured by the command and other options for this command.