Changing hostname (help)

Changing hostname (help)

Post by Alex Tar » Sat, 04 Feb 1995 03:31:43



: I need a bit of help.  I have a SPARC 10 running Solaris 2.3.  I want to  
: change the hostname, without having to reinstall the OS.  Can anyone  
: suggest how I might go about doing this?  The IP address is correcct, just  
: not the hostname.

: --
:  ------------------------
: | Daryl Storey           |

: |------------------------|
: | Newbie UNIX sys admin  |
: | Ancient DOS sys admin  |
:  ------------------------

Do
1) edit /etc/hosts - change the hostname of  your machine.
2) echo <the-new-hostname>  > /etc/hostname.le0
3) echo <the-new-hostname> > /etc/nodename

( i assume you just have one ethernet card )
Alex

 
 
 

Changing hostname (help)

Post by Ade Rix » Sun, 05 Feb 1995 00:40:17





> : I need a bit of help.  I have a SPARC 10 running Solaris 2.3.  I want to  
> : change the hostname, without having to reinstall the OS.  Can anyone  
> : suggest how I might go about doing this?  The IP address is correcct, just  
> : not the hostname.
> Do
> 1) edit /etc/hosts - change the hostname of  your machine.
> 2) echo <the-new-hostname>  > /etc/hostname.le0
> 3) echo <the-new-hostname> > /etc/nodename

The manuals also say to edit the /etc/net/*/hosts files.

Ade_
  /
--
 | Ade Rixon,Systems Support,UW Aberystwyth | http://www.dcs.aber.ac.uk/~ajr/ |
 "One friend, after a couple of days trawling around, remarked that he
  never wanted to hear another opinion from a computer science student in the
  Midwest about anything ever again" - Andrew Brown on USENET, The Independent

 
 
 

Changing hostname (help)

Post by Gottfried Merk » Sun, 05 Feb 1995 02:15:57



>I need a bit of help.  I have a SPARC 10 running Solaris 2.3.  I want to
>change the hostname, without having to reinstall the OS.  Can anyone
>suggest how I might go about doing this?  The IP address is correcct, just
>not the hostname.

>--
> ------------------------
>| Daryl Storey           |

>|------------------------|
>| Newbie UNIX sys admin  |
>| Ancient DOS sys admin  |
> ------------------------

Look at "man sys-unconfig" and "man sysidtool". There you will get informations
about files containing the hostname.

Good luck!
Gottfried

------------------------------------------------------------------

University of Essen             Phone:  +49 201 81003-45
Business Computing              Fax:    +49 201 81003-48
Altendorfer Str. 97-101
D-45143 Essen
Germany
------------------------------------------------------------------

 
 
 

Changing hostname (help)

Post by Khushroo Todiwa » Tue, 07 Feb 1995 06:17:18


Also edit /etc/net/ticlts/hosts, /etc/net/ticots/hosts and
/etc/net/ticotsord/hosts to reflect your new hostname.


: : I need a bit of help.  I have a SPARC 10 running Solaris 2.3.  I want to
: : change the hostname, without having to reinstall the OS.  Can anyone
: : suggest how I might go about doing this?  The IP address is correcct, just
: : not the hostname.
:
: Do
: 1) edit /etc/hosts - change the hostname of  your machine.
: 2) echo <the-new-hostname>  > /etc/hostname.le0
: 3) echo <the-new-hostname> > /etc/nodename

: ( i assume you just have one ethernet card )
: Alex

--
Khushroo R. Todiwala