Configuring DNS on Solaris 10 (Joining Solaris10 server to Domain)

################ Configure Solaris 10 machine to be on DNS##############
1. Check for file resolv.conf in /etc directory, if it doenst exist create it
2. add below information to the resolv.conf file
domain mydomain.com
nameserver 172.20.4.10
nameserver 172.20.4.166
search mydomain.com
3. Check for file nsswitch.conf in /etc directory
hosts:      files
ipnodes:    files
## edit the above 2 lines and add ‘dns’ in front of file
hosts:      files dns
ipnodes:    files dns
save and exit
$ nslookup swxscan
Server:         172.20.4.10
Address:        172.20.4.10#53
Name:   swxscan.mydomain.com
Address: 172.21.51.18
Name:   swxscan.mydomain.com
Address: 172.21.51.17
Name:   swxscan.mydomain.com
Address: 172.21.51.19
Voila

Category: SolarisUnix

Tags:

One comment

Leave a Reply

Article by: Shadab Mohammad