[Gllug] hostname on CentOS

Daniel P. Berrange dan at berrange.com
Thu Nov 10 19:28:05 UTC 2005


On Thu, Nov 10, 2005 at 07:26:43PM +0000, Caparo wrote:
> Hi,
>  I have tried in vain to get CentOS 4.2 to accept a change in host.domain name 
> change from the default localhost.localdomain with the command hostname 
> guppy.agro.net
>  The change appears if you then do the command hostname but disappears after a 
> reboot.
>  Any pointers welcome

  $ grep HOSTNAME /etc/sysconfig/network
  HOSTNAME=localhost.localdomain

Change that file & you should be in business.

Regards,
Dan.
-- 
|=-            GPG key: http://www.berrange.com/~dan/gpgkey.txt       -=|
|=-       Perl modules: http://search.cpan.org/~danberr/              -=|
|=-           Projects: http://freshmeat.net/~danielpb/               -=|
|=-   berrange at redhat.com  -  Daniel Berrange  -  dan at berrange.com    -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20051110/bc6495ec/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list