[wellylug] More on change hostname :-)

Damon Lynch damon at dev-zone.org
Fri Feb 28 09:10:42 NZDT 2003


A nice summary of what we discussed, with a warning that I'm not sure we
did cover!

-----Forwarded Message-----

From: Jim C <jcllings at tsunamicomm.net>
To: expert at linux-mandrake.com
Subject: Re: [expert] change hostname
Date: 27 Feb 2003 10:08:14 -0800

1. The minimal (mandatory) setting for /etc/hosts is:
127.0.0.1               localhost.localdomain localhost
More can be added but it must at least be as above because this is one 
way that your computer finds other computers.  This setting enables the 
system to find itself.  Thus, if you change or delete it, you got trouble.

2.
[root at enigma root]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=dude.mcgnarly.net
DOMAINNAME=dude.mcgnarly.net
GATEWAYDEV=eth0
FORWARD_IPV4=true

Change the 'HOSTNAME=' value to "buddy".

3. At this point you can either restart or as root you can use the 
hostname command as below:

hostname buddy

4. Note that sometimes logging onto an Interent Service Provider can 
cause your hostname to change regardless depending on how they have 
things set up.


David McGlone wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> How do I change my hostname from localhost.localdomain to Buddy?
> 
> I changed /etc/hosts, and hostmdkgiorig, and it was still 
> localhost.localdomain
> 
> Thanks
> - -- 
> David M.
> Edification Web Solutions
> http://www.edificationweb.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> 
> iD8DBQE+XZdUAulWMV3BRjARAuegAKCKPos7fhrvcPoDaywyiJ4sUQ/vHwCgj6M4
> NXDGjZ2j7uKwU/NyUoeeOME=
> =vXQE
> -----END PGP SIGNATURE-----
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com




----


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
-- 
Damon Lynch <damon at dev-zone.org>


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/0XFolB/TM
---------------------------------------------------------------------~->

  .-.   Wellington
  /V\   Linux
 // \\  Users       
/(   )\ Group
 ^^-^^
        http://wlug.paradise.net.nz/

To unsubscribe from this group, send an email to:
wellylug-unsubscribe at egroups.com
  

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 





More information about the wellylug mailing list