Friday, May 27, 2011
In Solaris, How to Setup DNS Client configuration / name server ?
DNS Client Setup:
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:
# touch /etc/resolv.conf
Open /etc/resolv.conf using vi text editor:
# vi /etc/resolv.conf
Add the following lines to it:
search nixcraft.in nameserver 202.54.1.30 nameserver 202.54.1.18Where,
- nameserver IP : It is IP of first DNS server
- search nixcraft.in : Default domain name to search. For example, if you type command nslookup www, it will search it as www.nixcraft.in
# cp /etc/nsswitch.dns /etc/nsswitch.conf
3) Test new name server by running the nslookup command as follows:
# nslookup nixcraft.in
OR
# /usr/sfw/sbin/nslookup nixcraft.in
Output:
Server: gwbsd2vsnl.nixcraft.in Address: 192.168.1.202 Non-authoritative answer: Name: nixcraft.in Address: 202.71.128.225
Thanks to : Nixcraft : http://www.cyberciti.biz/tips/solaris-dns-client-configuration.html
Suggestions are always welcome...! Without signing also you can send your comments.
Labels:
Sun Solaris,
Unix
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment