Change Solaris DNS client settings

One or more DNS servers can be configured in the Solaris system to enable name resoultion with DNS.


To set the name servers to 192.168.20.53 and 192.168.80.155, place these two lines in the file /etc/resolv.conf

This howto shows the commands and examples for changing the DNS client settings in the Solaris environment.

domain tech-recipes.com
nameserver 192.168.20.53
nameserver 192.168.80.155

The optional domain directive specifies the default domain to use when doing hostname lookups.

See also Configure Solaris for DNS resolution of hostnames

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

One Response to “Change Solaris DNS client settings”

  1. February 23, 2009 at 11:45 pm, Spike said:

    Thanks a lot! I was having this problem and it worked like a charm.

    Reply

Leave a Reply

You may also like-

Configure Solaris for DNS Resolution of HostnamesSolaris provides extensive control over the means of looking up various name services, including DNS. If DNS resolution of hostnames has not been setup, ...