SAMBA was RE: how to change hostname

Eric plug-discuss@lists.PLUG.phoenix.az.us
Fri, 19 Oct 2001 14:49:26 -0800


The linux box now shows its name as "Shitty" just as it should.

But from two different w2k computers and a w98 computer, the network
neighborhood shows Shitty as being "localhost" instead.  Is there anywhere
else I need to change the name?  I also changed it under the network
configuration box in KDE.

-----Original Message-----
From: plug-discuss-admin@lists.PLUG.phoenix.az.us
[mailto:plug-discuss-admin@lists.PLUG.phoenix.az.us]On Behalf Of Digital
Wokan
Sent: Friday, October 19, 2001 1:32 PM
To: plug-discuss@lists.PLUG.phoenix.az.us
Subject: Re: how to change hostname


Instead of reboot, if the logout/login doesn't work, try doing
'/etc/rc.d/init.d/network restart'

Kevin Brown wrote:
>
> On RH6.x it is stored in a file.
>
> /etc/sysconfig
> vi network
> HOSTNAME=<set the host name here>
>
> I believe you have to reboot for a change that is just to this file, but
should
> be a command to change it on the fly.  Looks like it's hostname
>
> man hostname
>
> NAME
>        hostname - show or set the system's host name
>        domainname - show or set the system's NIS/YP domain name
>        dnsdomainname - show the system's DNS domain name
>        nisdomainname - show or set system's NIS/YP domain name
>        ypdomainname - show or set the system's NIS/YP domain name
>        nodename - show or set the system's DECnet node name
>
> > I am having trouble setting my hostame.  I have redhat 7.1.  I manually
> > edited /etc/hosts to:
> > 127.0.0.1       localhost.localdomain localhost
> > 192.168.0.3     Shitty  Shitty.localdomain
> >
> > I have also used "hostname Shitty"
> >
> > But my hostname still shows up at my command prompt as
> > "localhost.localdomain.
> >
> > What am I doing wrong here.  How to I properly set my hostname?
> >
> > Thx
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't
post to the list quickly and you use Netscape to write mail.
>
> PLUG-discuss mailing list  -  PLUG-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
________________________________________________
See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post
to the list quickly and you use Netscape to write mail.

PLUG-discuss mailing list  -  PLUG-discuss@lists.PLUG.phoenix.az.us
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss