Monday, 29 September 2014

DNS Client Configuration:in solaris

Steps Followed to Resolve the DNS Client Configuration:

Step 1: Check the /etc/hosts file for the proper hostname entry and FQDN.

ipadddress hostname FQDN

example:

ipadddress hostname FQDN

0.1.2.3     GRID      grid.fra.com


Step 2: Stop the DNS Client services by:

svcs -a | grep dns
disabled       Jul_03   svc:/network/dns/server:default
online          8:50:53 svc:/network/dns/client:default

svcadm disable /network/dns/client

Step 3: Copy the files as mentioned below:

cp /etc/nsswitch.dns /etc/nsswitch.conf

and check for the entry given below. If not exist make an exact entry.

hosts:      files       dns

Step 4: Make resolv.conf file as below:

vi /etc/resolv.conf

search <domain>   ---> In case of windows confirm the suffix configured at the Windows DNS Server.
nameserver <primary dns server ip.>

example:

search fra.com
nameserver 0.1.2.3


Step 5: Enbale the DNS Client Service.

svcadm enable /network/dns/client

Check the service status (onile/offline).
svcs -l /network/dns/client

Step 6: Client Lookup.

nslookup <hostname>

It should give an output as mentioned below:

root@GRID # nslookup
> GRID
Server:         0.1.2.3
Address:        10.1.2.3#53

Name:   GRID.fra.com
Address: 0.1.2.3

> agrid
Server:         0.1.2.3
Address:        0.1.2.3#53

Name:   grid.fra.com
Address: 0.1.2.3

No comments:

Post a Comment