星期二, 1月 18, 2011

Configure DNS Client on Solaris 10

How To Configure DNS Client on Solaris 10?

A) Two files need to be concern here which is the /etc/nsswitch.conf and /etc/resolv.conf

Obviously, please make sure that /etc/hosts and /etc/defaultrouter are set correctly.

** Check the status of dns (enable/disable) – if disable, enable it..

# svcs -i | grep dns

# svcadm enable svc:/network/dns/server:default
# svcadm enable svc:/network/dns/client:default

1. Edit/add these 2 lines in /etc/resolv.conf

nameserver (primary dns) <– ask this from your service provider.
nameserver (secondary dns)

2. Then copy the /etc/nsswitch.dns into /etc/nsswitch.conf

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

3. Finally, stop and restart the service ( without reboot the server)

#/etc/init.d/nscd stop #/etc/init.d/nscd start
or
#/etc/init.d/inetinit restart

4. Check the configuration with this command:

沒有留言: