You are not logged in.

#1 2011-12-10 14:59:57

bpont
Banned
Registered: 2010-03-24
Posts: 161

Hostname not recognized

Ever since doing a system upgrade and rebooting a few hours ago, my hostname has mysteriously changed at the command prompt.  I made no system changes, only did an upgrade and reboot.  I've never had this issue before.

The prompt should display:


username@unique-hostname


But instead it displays:


[username@000d561647fd ~]$


My /etc/rc.conf


HOSTNAME="unique-hostname"


My /etc/hosts


#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1       localhost.localdomain   localhost unique-hostname   
::1        localhost.localdomain    localhost unique-hostname


I'm at a loss for what's wrong or how to fix it.

Offline

#2 2011-12-10 15:19:57

kurych
Member
From: Saint-Petersburg, Russia
Registered: 2011-12-07
Posts: 27

Re: Hostname not recognized

talk in console "sudo hostname unique-hostname". But I don't sure what to be after reboot. Say us later

Last edited by kurych (2011-12-10 15:20:25)

Offline

#3 2011-12-10 15:50:04

bpont
Banned
Registered: 2010-03-24
Posts: 161

Re: Hostname not recognized

kurych wrote:

talk in console "sudo hostname unique-hostname". But I don't sure what to be after reboot. Say us later

sudo: hostname: command not found

EDIT: Sorry, I had to install inetutils to execute hostname

I ran the command successfully, and hostname shows the change but will the change remain after a reboot?

EDIT: OK, that seemed to do the trick...still worked after a reboot.  Thanks.

Last edited by bpont (2011-12-10 16:54:35)

Offline

#4 2011-12-11 15:56:40

Mustard
Member
From: Noblesville, Indiana
Registered: 2010-03-02
Posts: 39
Website

Re: Hostname not recognized

Mark the thread as solved?

Offline

Board footer

Powered by FluxBB