Solaris 10 resolv.conf

Solaris 10 works much like any other unix based distribution. It uses ifconfig for networking, and resolv.conf to reference dns servers. The resolv.conf file has the same type of format as other unix/linux distributions. Below is an example:

root@computer:~# cat /etc/resolv.conf
nameserver 192.168.10.1
nameserver 192.168.10.2

After making a change to this file you will not need to restart the network since it will be reference with any network call. The resolv.conf file can be altered on the fly. It is always a good idea to specify more than one nameserver unless one of the nameservers are no longer working Solaris 10 requires you put an IP address in this file as your name server.

After editing you can test by pining some domain such as google.com to test if your dns servers in the resolv.conf work

root@computer:~# ping -s google.com
PING google.com: 56 data bytes
64 bytes from 74.125.224.115: icmp_seq=0. time=22.293 ms
64 bytes from 74.125.224.115: icmp_seq=1. time=21.297 ms
64 bytes from 74.125.224.115: icmp_seq=2. time=21.468 ms
^C
----google.com PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms)  min/avg/max/stddev = 21.297/21.686/22.293/0.533

Be the first to comment

Leave a Reply