Page 1 of 1

hostname of my computer is "unknown-d8-5d-4c-e4-76-2"

PostPosted: Jan 21st, '14, 09:07
by mabz
I have searched the web for this and have not been able to fix this. It is really weird and I would not describe myself as a newbie. I have changed hostname and hosts file as recommended and still no luck.
Code: Select all
[root@unknown-d8-5d-4c-e4-76-2b ~]# lsb_release -a
LSB Version:    *
Distributor ID: Mageia
Description:    Mageia 3
Release:        3
Codename:       thornicroft
[root@unknown-d8-5d-4c-e4-76-2b ~]#



Code: Select all
[root@unknown-d8-5d-4c-e4-76-2b ~]# uname -a
Linux unknown-d8-5d-4c-e4-76-2b.lan 3.10.24-desktop586-2.mga3 #1 SMP Fri Dec 13 20:38:16 UTC 2013 i686 i686 i686 GNU/Linux
[root@unknown-d8-5d-4c-e4-76-2b ~]#


Code: Select all
[root@unknown-d8-5d-4c-e4-76-2b ~]# vi /etc/hosts
# generated by drakhosts
127.0.0.1 localhost localhost.localdomain savea
~


Code: Select all
[root@unknown-d8-5d-4c-e4-76-2b ~]# vi /etc/hostname
savea


As you can see I want to name my machine 'savea'

Any help appreciated

Cheers
Byron

Re: hostname of my computer is "unknown-d8-5d-4c-e4-76-2"

PostPosted: Jan 21st, '14, 11:20
by wintpe
hostname is contained in

/etc/sysconfig/network as

HOSTNAME=myhost

this is standard with all fedora derived linux distributions, including centos, scientific, redhat, mageia fedora and many others if you look at distrowatch.

alternatively it can be set in your wifi or networks connection advanced settings under DHCP hostname or as you are getting by dhcp itself.

regards peter