0% found this document useful (0 votes)
10 views2 pages

Configuracion Cliente DNS

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Configuracion Cliente DNS

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DNS client configuration steps in Oracle Solaris 11

By Gurubalan-Oracle on May 25, 2014

This guide covers Quick how to configure DNS client on Solaris 11.

DNS client configuration in Solaris 11 is based on SMF service rather than file based.
When you configure a system as DNS client, you will be performing the following two
configurations.

I. DNS client setup

II. Configure Name service switch to use DNS

I. DNS client setup

1. Configure using SMF service network/dns/client

# svccfg -s network/dns/client
svc:/network/dns/client> setprop config/search = astring: ("test.com" "service.test.com")
svc:/network/dns/client> setprop config/nameserver = net_address: (192.168.10.10
192.168.10.11)
svc:/network/dns/client> exit

2. Enable the DNS client service (when you configure it for the first time)

#svccfg enable -r dns/client

3. Restart/Refresh DNS client service (It is done when there is any update to the
configuration)

#svcadm refresh dns/client

#svcadm restart dns/client

4. Verify /etc/resolv.conf if it is updated with the changes.

# more /etc/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 test.com service.test.com


nameserver 192.168.10.10
nameserver 192.168.10.11

---

II. Configuring Name service switch to use DNS

1. Configure using SMF service system/name-service/switch

# svccfg -s system/name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns"
svc:/system/name-service/switch>exit

2. Restart/Refresh name-service/switch service

#svcadm refresh name-service/switch

#svcadm restart name-service/switch

3. Verfiy host entry in /etc/nsswitch.conf is updated with dns.

# more /etc/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

---

You might also like