DNS (Domain Name System) configuration in Solaris 10 & older

Step 1: Check /etc/resolv.conf file

/etc/resolv.conf file includes the primary and secondary DNS server IP address for Solaris system.

Step 2: Open & Edit /etc/resolv.conf

#vi /etc/resolv.conf

Add the following lines to it:

nameserver      10.xx.xx.223
nameserver      10.xx.xx.224
search domain	dns.oracle.com

Step 3: Enable the name resolving using DNS

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

Step 4: Test new name server

#/usr/sfw/sbin/nslookup dns.oracle.com

Output:

Server: xx.oracle.com
Address:  10.xx.xx.223
Non-authoritative answer:
Name:    dns.oracle.com
Address:  10.xx.xx.224
Comments:

Be aware that this procedure won't work for Solaris 11+.

Posted by guest on July 18, 2014 at 07:20 PM EEST #

Your advice is for Solaris 10 or older. Solaris 11 uses properties within SMF, not /etc/resolv.conf and /etc/nsswitch.conf.

For up-to-date advice, see for example:
http://www.timwort.org/sol11tips/Configuring_Sol11_DNS_Client.pdf

I'd also recommend using the following command to check the configuration:
getent hosts <hostname> (e.g. getent hosts dns.oracle.com)

This will test both the DNS client configuration and the name service switch configuration, whereas nslookup will only test the DNS client configuration.

Posted by guest on July 22, 2014 at 05:21 AM EEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About


I am a member of the Fusion Middleware Applications Consultancy team.

I focus on tips and tricks FMW applications consultancy but also have a strong interest in ADF Development & Achitecture, Oracle BPM, Oracle Identity Manager and Oracle SOA Suite.

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.


Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today