Tuesday, September 27, 2022

Why and How to add new DNS client in Solaris?

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 :

 https://docs.oracle.com/cd/E19120-01/open.solaris/819-2379/ecdne/index.html

## Check DNS status

$ svcadm enable dns/client

$ svcadm enable name-service/switch

## Do any use nslookup

nslookup google.com

No comments:

Post a Comment

Why and How to install Grid 19c on RHEL 8?

  Why ? Simply we will be requested to install Oracle Grid RAC DB on Redhat RHEL 8, below is my note for this installation . How ? 1-  OS in...