You are not logged in.

#1 2011-06-16 08:30:05

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

[SOLVED] Hostname lost

Hello all,
I tried all what I could, impossible to get my hostname back !
I made an upgrade on a machine and lost the hostname !! This computer should be named crystal, but now I have :
$ uname -n
(none)
$ echo $HOSTNAME

Here is /etc/hosts :
#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       crystal.localdomain     crystal
::1             crystal.localdomain     crystal

# End of file

I tried installing everything I could like net-tools, coreutils, ypbind but nothing hmm
I don't have the `hostname` command.
I've also put crystal in /etc/hostname.
Don't now what to do now or where to search.... Any help please ?

Last edited by Kooothor (2011-06-16 09:31:36)


ktr

Offline

#2 2011-06-16 09:00:18

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] Hostname lost

pacman -Syu

Offline

#3 2011-06-16 09:01:11

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: [SOLVED] Hostname lost

Offline

#4 2011-06-16 09:31:23

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 226

Re: [SOLVED] Hostname lost

Thanks the problem is solved \o/
Dunno if it was the new /etc/hosts format or the -Syu or both...
Thanks guys smile


ktr

Offline

Board footer

Powered by FluxBB