[Solaris-Users] Re: [SunHELP] hostname
Fernando Machado
fmachadoj at inf.ufrgs.br
Thu Sep 25 09:02:10 CDT 2003
Hey, Peter!
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, i4ve 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, cos4
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)!!!
[ ]4s!
Fernando Machado Jr.
IT Dept.
Universidade Federal do Rio Grande do Sul - Porto Alegre/RS - Brasil
Biotechnology/Network Support
e-mail: fmachadoj at inf.ufrgs.br
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> i4m 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?
>>>>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 - SunHELP at sunhelp.org
>>>>http://www.sunhelp.org/mailman/listinfo/sunhelp
>>>>
>>>>
>>>>
>>>>
>>>/etc/hostname.name-of-the-interface should contain the hostname.
>>>
>>>/etc/hosts should contain the IP address and name from above.
>>>
>>>Reboot.
>>>
>>>
>>>
>>>
>
>
>
>Fernando Machado> _______________________________________________
>Fernando Machado> Solaris-Users mailing list
>Fernando Machado> Solaris-Users at filibeto.org
>Fernando Machado> http://www.filibeto.org/mailman/listinfo/solaris-users
More information about the SunHELP
mailing list