thanx for you help, but the unique solution that worked was creating a script in rc2.d that sets the hostname based on file with the a given name. so, i�ve created a script that sets the hostname to the name given in the file /etc/myhname, and it runs before the net start.
This is recommended for machines that get ips from a dhcp server, cos� in fixed ip machines you set the hostname as you told, setting it on /etc/hostname.[device] and in /etc/hosts.
Have a nice Week(end)!!!
[ ]�s!
Fernando Machado Jr. IT Dept. Universidade Federal do Rio Grande do Sul - Porto Alegre/RS - Brasil Biotechnology/Network Support e-mail: [EMAIL PROTECTED]
Peter Kirkov wrote:
Hello Fernando, In Solaris for Sparc there is command sys-unconfig, which will allow you to set all the parameters for the system ( name, IPs, DHCP etc ) I believe there is the same command in Solaris for Intel. Anyway: /etc/hostname.name-of-the-interface contains name of the interface. IP on that interface is read from /etc/hosts - it's IP coresponding to that interface name. The name of the system is located in /etc/nodename.
HTH, Peter
Wednesday, September 24, 2003, 7:46:08 PM, you wrote:
Fernando Machado> Ok, nothing happened!
Fernando Machado> i�m using dhcp to get IPs!
Fernando Machado> thanx!
Fernando Machado> Jim Pennino wrote:
On Wed, Sep 24, 2003 at 01:27:33PM -0300, Fernando Machado wrote:
How do i set the hostname in a solaris 8 intel-based system?/etc/hostname.name-of-the-interface should contain the hostname.
in /etc there4s a file named hostname.elxl0, but nothing inside. if i put the hostname in it, i receive error msgs and nothing happen!!!!
Thanx!
_______________________________________________
SunHELP maillist - [EMAIL PROTECTED]
http://www.sunhelp.org/mailman/listinfo/sunhelp
/etc/hosts should contain the IP address and name from above.
Reboot.
Fernando Machado> _______________________________________________ Fernando Machado> Solaris-Users mailing list Fernando Machado> [EMAIL PROTECTED] Fernando Machado> http://www.filibeto.org/mailman/listinfo/solaris-users
_______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users
