Visit Counter

Monday, February 6, 2017

DNS client configuration steps in Oracle Solaris 11




root@afi-drsvr:/etc# svccfg -s network/dns/client
svc:/network/dns/client> setprop config/search = astring: ("afigroup.com""afidc01.afigroup.com")
svc:/network/dns/client> setprop config/nameserver = netaddress: (192.0.0.9 192.0.0.10)
Unknown type "netaddress:".
svc:/network/dns/client> setprop config/nameserver = net_address: (192.0.0.9 192.0.0.10)
svc:/network/dns/client> exit
root@afi-drsvr:/etc# svccfg enable -r dns/client
svccfg: Unknown command "enable".
root@afi-drsvr:/etc#
root@afi-drsvr:/etc# svcadm refresh dns/client
root@afi-drsvr:/etc# svcadm restart dns/client
root@afi-drsvr:/etc# pwd
/etc
root@afi-drsvr:/etc# ls -l resolv.conf
-rw-r--r--   1 root     root         249 Feb  6 16:34 resolv.conf
root@afi-drsvr:/etc# cat resolv.conf

#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
#   DO NOT EDIT THIS FILE.  EDITS WILL BE LOST.
# See resolv.conf(4) for details.

search  afigroup.com afidc01.afigroup.com
nameserver      192.0.0.9
nameserver      192.0.0.10
root@afi-drsvr:/etc#

root@afi-drsvr:/etc# svccfg -s system/name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns"
svc:/system/name-service/switch> exit
root@afi-drsvr:/etc# svcadm refresh name-service/switch
root@afi-drsvr:/etc# svcadm restart  name-service/switch
root@afi-drsvr:/etc# ls -l nss*
-rw-r--r--   1 root     sys         1682 Oct  6  2015 nsswitch.ad
-rw-r--r--   1 root     sys          515 Feb  6 16:38 nsswitch.conf
-rw-r--r--   1 root     sys          511 Feb  2 15:46 nsswitch.conf.old
-rw-r--r--   1 root     sys         1392 Oct  6  2015 nsswitch.dns
-rw-r--r--   1 root     sys          925 Oct  6  2015 nsswitch.files
-rw-r--r--   1 root     sys         1221 Oct  6  2015 nsswitch.ldap
-rw-r--r--   1 root     sys         1150 Oct  6  2015 nsswitch.nis
root@afi-drsvr:/etc# cat nsswitch.conf

#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
#   DO NOT EDIT THIS FILE.  EDITS WILL BE LOST.
# See nsswitch.conf(4) for details.

passwd: files
group:  files
hosts:  files dns
ipnodes:        files dns
networks:       files
protocols:      files
rpc:    files
ethers: files
netmasks:       files
bootparams:     files
publickey:      files
netgroup:       files
automount:      files
aliases:        files
services:       files
printers:       user files
project:        files
auth_attr:      files
prof_attr:      files
tnrhtp: files
tnrhdb: files
sudoers:        files
root@afi-drsvr:/etc#
root@afi-drsvr:/etc# pwd
/etc
root@afi-drsvr:/etc# ping testdc01
afidc01 is alive
root@afi-drsvr:/etc# ping testgroup.com
afigroup.com is alive
root@afi-drsvr:/qas/QAS_4_1_1_22824# ls
add-ons           autorun.exe       changelog.txt     copyrights.txt    eula.txt          preflight.sh      version.txt
autorun           autorun.inf       client            docs              install.sh        ReleaseNotes.htm  windows
root@afi-drsvr:/qas/QAS_4_1_1_22824# ./preflight.sh

Enter an Active Directory domain: afigroup.com
Enter an Active Directory user with administrator privileges: administrator

Report all results (default: only advisories and failures) (yes|no)? [no]: yes
--------------------------------------------------------------------------------
/qas/QAS_4_1_1_22824/client/solaris8-sparc/preflight  --verbose -u administrator afigroup.com
Starting Preflight Checks ...
Starting Install Checks
  Check for Supported operating system and correct OS patches            Success
    OS and patches checked - OK
  Check for sufficient disk space to install software                    Success
    430675138 kB available on /etc /opt - OK, 430675138 kB available
     on /var - OK
Install Checks complete                                                  Success
Starting Join Checks
Password for administrator@AFIGROUP.COM:
  Check that the hostname of the system is not 'localhost'               Success
    hostname is not localhost
  Check that the DNS Top Level Domain (TLD) is not '.local'              Success
    TLD is not local
  Check if the name service is configured to use DNS                     Success
    DNS lookups enabled in /etc/nsswitch.conf
  Check /etc/resolv.conf for proper formatting of nameservice            Success
   entries and that the nameservers can be resolved
    resolv.conf OK
  Check for a nameserver that has the appropriate DNS SRV records        Success
   for Active Directory
    afidc01.afigroup.com,afibdc01.afigroup.com
  Selects a writable DC with port 389 (UDP) open to use for the checks   Success
    DC for afigroup.com is afibdc01.afigroup.com and port 389 (UDP)
     is open
  Display AD site of user running checks if available                    Success
    Site for afigroup.com is Default-First-Site-Name
  Check if port 464 (TCP) is open for Kerberos Kpasswd                   Success
    Pinged port 464 (TCP) on afibdc01.afigroup.com
  Check if port 88 (TCP) is open for Kerberos traffic                    Success
    Pinged port 88 on afibdc01.afigroup.com using TCP
  Check if port 389 (TCP) is open for LDAP                               Success
    Pinged port 389 (TCP) on afibdc01.afigroup.com
  Check for Global Catalog and port 3268 (TCP) is open to the GC         Success
    Found global catalog at afibdc01.afigroup.com and able to ping
     on port 3268 (TCP)
  Check for a valid time skew against Active Directory DC                Success
    timesync ok with afibdc01.afigroup.com
  Check for QAS Application Configuration                                Success
    CN={786E0064-A470-46B9-83FB-C7539C9FA27C},CN=Authentication
     Services,CN=Quest Software,CN=Program Data,DC=afigroup,DC=com
Join Checks complete                                                     Success
Starting Post Join Checks
  Check if port 445 (TCP) is open for Microsoft Directory Services       Success
    Pinged port 445 (TCP) on afibdc01.afigroup.com
Post Join Checks complete                                                Success

Preflight Checks ... complete                                            Success
root@afi-drsvr:/qas/QAS_4_1_1_22824#


Reference:

https://blogs.oracle.com/gurubalan/entry/dns_client_configuration_guide_for

No comments:

Post a Comment