Hi All,
I am working on Solaris sparc 9 and my computer name is mgsun.
I want to bring this machine to a specific domain (e.g.-xx.xx.org).
So please help me to do the same..
thanks in Advance...
Hi All,
I am working on Solaris sparc 9 and my computer name is mgsun.
I want to bring this machine to a specific domain (e.g.-xx.xx.org).
So please help me to do the same..
thanks in Advance...
Assuming you mean a DNS domain, you need to have your server IP/hostname registered in the DNS servers managing the domain you want.
Please follow the below steps:
#cp /etc/nsswitch.nis /etc/nsswitch.conf
#domainname xx.xx.org
#vi /etc/defaultdomain
xx.xx.org
and save the file
#/usr/lib/netsvcs/yp/ypstart
#cd /var/yp
#/usr/sbin/ypinit -c
give the master server name
If there is any problem, write the output.
Thanks,
Deepak
one way is to capture the existing config. do sys-unconfig. after the system reboots, it will bring you through the "installation" process where it asks you the ip, netmask, services, domain etc. you can specify it then.
If im not wrong, you're asking how to join a domain right?
or you can do this method:-
cat /etc/resolv.conf
domain xx.xx.org
nameserver 192.168.2.1
search sspg.central.sun.com central.sun.com
Now, set up /etc/nsswitch.conf so that hosts are resolved via DNS. You can modify you existing/etc/nsswitch.conf file or just copy /etc/nsswitch.dns to /etc/nsswitch.conf.
Three answers, three different interpretations of the OP question ...