Solaris UNIX: How to Setup DNS Client configuration / name server
DNS Client Setup in Solaris :-
First Create the file called /etc/resolv.conf - which includes the primary and secondary DNS server IP address for Solaris system, it can be your own DNS server or your ISPs DNS server:
Create resolv.conf file
# touch /etc/resolv.conf
# touch /etc/resolv.conf
Open /etc/resolv.conf using vi text editor:
Add the following lines to it:
# vi /etc/resolv.conf
Add the following lines to it:
nameserver 8.8.8.8 nameserver 4.4.4.4
Where,
nameserver IP : It is IP of first DNS server
nameserver IP : It is IP of first DNS server
Enable the name resolving using DNS as follows:
# cp /etc/nsswitch.dns /etc/nsswitch.conf
Test new name server by running the nslookup command as follows:
# ping google.com
you will get the below output :
google.com is alive
*************
No comments:
Post a Comment