Why ?
A
basic needed is to resolve the naming service with IP using your company DNS
Server, below I am sharing the Oracle official we that I follow to add and
check the service of the DNS client.
How ?
Please
follow the below to achieve this ,:
1- Oracle documentation for Solaris 11.4:
https://docs.oracle.com/cd/E37838_01/html/E60988/gnlbt.html
## Example :
## configure the DNS
$ svccfg -s network/dns/client
svc:/network/dns/client> setprop config/search = astring: ("nameserver")
svc:/network/dns/client> setprop config/nameserver = net_address: (10.1.1.100)
svc:/network/dns/client> select network/dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> validate
svc:/network/dns/client:default> select name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns"
svc:/system/name-service/switch> select system/name-service/switch:default
svc:/system/name-service/switch:default> refresh
svc:/system/name-service/switch:default> validate
svc:/system/name-service/switch:default> quit
2-
Check the status of the service :
## Check DNS status
$ svcadm enable dns/client
$ svcadm enable name-service/switch
## Do any use nslookup
nslookup google.com