[SunHELP] Hostname change

Lund, Dennis sunhelp at sunhelp.org
Fri May 25 12:30:36 CDT 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0E540.68AD2820
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

My first choice has always been to use "sys-unconfig", but if you
don't want to have to re-enter all the system info, use the following:

If the machine name isn't a popular word, you can use a=20

        find /etc -type f | xargs grep "machine_name"

command to find it in other places.  (Check the syntax before using my
example!) This is _not_ effective if the machine name is a common word in
scripts.  I once had a machine named "echo" ....

**************************************************************************
There are 5 places you need to modify to correctly change
a system nodename under Solaris.

/etc/net/ticotsord/hosts
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/nodename
/etc/hosts
/etc/hostname.xxN

The "uname" or "hostname" command can be used to take care=20
of some of these changes, but not all.  If you don't want
to manually modify all of these files, I suggest running
sys-unconfig.  Changing the hostname becomes more difficult
as documented below if you are running Veritas.  If you
are running Veritas, you will need to export your volume
groups prior to changing the hostname and then import them
back in after the hostname changes.  I believe the Veritas=20
documentation explains this.

**************************************************************************
Dennis L. Lund

-----Original Message-----
From: Steffen Grunewald [mailto:steffen at gfz-potsdam.de]
Sent: Friday, May 25, 2001 11:46 AM
To: SunHELP at sunhelp.org
Subject: Re: [SunHELP] Hostname change


On Tue 2001-05-15 (13:26), anna menshch wrote:
> Hello, I need to change the name on one of my servers.  Is changing it in
the /etc/hosts file enough, or I should make more changes?

Hi Anna,

Since /etc/hosts holds the host - ipaddr pairs you might enter anything
there,
but you will lose your internat connection (because the OS cannot look up
the IP address anymore)...=20

You have to edit /etc/hostname.{interface_id} and /etc/nodename, too.

Good luck,
 Steffen
--=20
 Steffen Grunewald | GFZ | PB 2.2 | Telegrafenberg E3 | D-14473 Potsdam
 =BB email: steffen(at)gfz-potsdam.de | fax/fon: +49-331-288-1266/-1245 =AB
If you can't learn to do something well, learn to enjoy doing it poorly.
                                                     --- www.despair.com
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


<html>
<body>
<font size=3D"3" face=3D"Times New Roman"><span style=3D"mso-fareast-font-f=
amily: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-=
US; mso-bidi-language: AR-SA">
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
<span style=3D"font-size:10.0pt;font-family:Times New Roman;
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US=
;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"></span><font face=3D"Times New Roman" size=
=3D"3"><span style=3D"mso-fareast-font-family:Times New Roman; mso-ansi-lan=
guage: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e=
-mail and any attachments may contain information which is confidential, pr=
oprietary, privileged or otherwise protected by law. The information is sol=
ely intended for the named addressee (or a person responsible for deliverin=
g it to the addressee). If you are not the intended recipient of this messa=
ge, you are not authorized to read, print, retain, copy or disseminate this=
 message or any part of it. If you have received this e-mail in error, plea=
se notify the sender immediately by return e-mail and delete it from your c=
omputer.</span></font></p>
</body>
</html>

------_=_NextPart_001_01C0E540.68AD2820
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [SunHELP] Hostname change</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>My first choice has always been to use "sys-unconfig=
", but if you</FONT>
<BR><FONT SIZE=3D2>don't want to have to re-enter all the system info, use =
the following:</FONT>
</P>

<P><FONT SIZE=3D2>If the machine name isn't a popular word, you can use a <=
/FONT>
</P>

<P><FONT SIZE=3D2>        find /etc -typ=
e f | xargs grep "machine_name"</FONT>
</P>

<P><FONT SIZE=3D2>command to find it in other places.  (Check the synt=
ax before using my</FONT>
<BR><FONT SIZE=3D2>example!) This is _not_ effective if the machine name is=
 a common word in</FONT>
<BR><FONT SIZE=3D2>scripts.  I once had a machine named "echo&quo=
t; ....</FONT>
</P>

<P><FONT SIZE=3D2>*********************************************************=
*****************</FONT>
<BR><FONT SIZE=3D2>There are 5 places you need to modify to correctly chang=
e</FONT>
<BR><FONT SIZE=3D2>a system nodename under Solaris.</FONT>
</P>

<P><FONT SIZE=3D2>/etc/net/ticotsord/hosts</FONT>
<BR><FONT SIZE=3D2>/etc/net/ticlts/hosts</FONT>
<BR><FONT SIZE=3D2>/etc/net/ticots/hosts</FONT>
<BR><FONT SIZE=3D2>/etc/nodename</FONT>
<BR><FONT SIZE=3D2>/etc/hosts</FONT>
<BR><FONT SIZE=3D2>/etc/hostname.xxN</FONT>
</P>

<P><FONT SIZE=3D2>The "uname" or "hostname" command can=
 be used to take care </FONT>
<BR><FONT SIZE=3D2>of some of these changes, but not all.  If you don'=
t want</FONT>
<BR><FONT SIZE=3D2>to manually modify all of these files, I suggest running=
</FONT>
<BR><FONT SIZE=3D2>sys-unconfig.  Changing the hostname becomes more d=
ifficult</FONT>
<BR><FONT SIZE=3D2>as documented below if you are running Veritas.  If=
 you</FONT>
<BR><FONT SIZE=3D2>are running Veritas, you will need to export your volume=
</FONT>
<BR><FONT SIZE=3D2>groups prior to changing the hostname and then import th=
em</FONT>
<BR><FONT SIZE=3D2>back in after the hostname changes.  I believe the =
Veritas </FONT>
<BR><FONT SIZE=3D2>documentation explains this.</FONT>
</P>

<P><FONT SIZE=3D2>*********************************************************=
*****************</FONT>
<BR><FONT SIZE=3D2>Dennis L. Lund</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Steffen Grunewald [<A HREF=3D"mailto:steffen at gfz-p=
otsdam.de">mailto:steffen at gfz-potsdam.de</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, May 25, 2001 11:46 AM</FONT>
<BR><FONT SIZE=3D2>To: SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [SunHELP] Hostname change</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>On Tue 2001-05-15 (13:26), anna menshch wrote:</FONT>
<BR><FONT SIZE=3D2>> Hello, I need to change the name on one of my serve=
rs.  Is changing it in the /etc/hosts file enough, or I should make mo=
re changes?</FONT></P>

<P><FONT SIZE=3D2>Hi Anna,</FONT>
</P>

<P><FONT SIZE=3D2>Since /etc/hosts holds the host - ipaddr pairs you might =
enter anything there,</FONT>
<BR><FONT SIZE=3D2>but you will lose your internat connection (because the =
OS cannot look up</FONT>
<BR><FONT SIZE=3D2>the IP address anymore)... </FONT>
</P>

<P><FONT SIZE=3D2>You have to edit /etc/hostname.{interface_id} and /etc/no=
dename, too.</FONT>
</P>

<P><FONT SIZE=3D2>Good luck,</FONT>
<BR><FONT SIZE=3D2> Steffen</FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2> Steffen Grunewald | GFZ | PB 2.2 | Telegrafenberg =
E3 | D-14473 Potsdam</FONT>
<BR><FONT SIZE=3D2> =BB email: steffen(at)gfz-potsdam.de | fax/fon: +4=
9-331-288-1266/-1245 =AB</FONT>
<BR><FONT SIZE=3D2>If you can't learn to do something well, learn to enjoy =
doing it poorly.</FONT>
<BR><FONT SIZE=3D2>         &n=
bsp;           &nbsp=
;            &n=
bsp;           &nbsp=
;      --- www.despair.com</FONT>
<BR><FONT SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhe=
lp" TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></=
FONT>
</P>

<CODE><FONT SIZE=3D3><BR>
<BR>
<html><BR>
<body><BR>
<font size=3D"3" face=3D"Times New Roman"><span style=3D"mso-fareast-font-f=
amily: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-=
US; mso-bidi-language: AR-SA"><BR>
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -<BR>
<span style=3D"font-size:10.0pt;font-family:Times New Roman;<BR>
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US=
;mso-fareast-language:<BR>
EN-US;mso-bidi-language:AR-SA"></span><font face=3D"Times New Roman" size=
=3D"3"><span style=3D"mso-fareast-font-family:Times New Roman; mso-ansi-lan=
guage: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e=
-mail and any attachments may contain information which is confidential, pr=
oprietary, privileged or otherwise protected by law. The information is sol=
ely intended for the named addressee (or a person responsible for deliverin=
g it to the addressee). If you are not the intended recipient of this messa=
ge, you are not authorized to read, print, retain, copy or disseminate this=
 message or any part of it. If you have received this e-mail in error, plea=
se notify the sender immediately by return e-mail and delete it from your c=
omputer.</span></font></p><BR>
</body><BR>
</html><BR>
</FONT></CODE></BODY>
</HTML>
------_=_NextPart_001_01C0E540.68AD2820--



More information about the SunHELP mailing list