You are not logged in.

#1 2008-11-27 12:42:40

OutOfPhase
Member
From: The Netherlands
Registered: 2007-03-13
Posts: 33

[SOLVED] Setting hostname to...

I have defined in my /etc/rc.conf my desired hostname Cyrodiil' and it also comes up in the boot output as "Setting hostname to Cyrodiil", however, when I type the command 'hostname', it outputs the hostname which I used ages ago, and not Cyrodiil.
I can manually set the hostname with the command: 'hostname Cyrodiil', but this only holds out until I reboot again.
Am I missing something?

Solved: It did not have anything to do with /etc/hosts. It seems that the ssh server authentication keys have hardcoded within them the hostname and this caused the reverting back to the old hostname. I have regenerated the authentication keys and now the new hostname is now correct, even after reboot. smile

Last edited by OutOfPhase (2008-11-27 14:26:40)

Offline

#2 2008-11-27 12:44:09

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED] Setting hostname to...

Have you tried escaping the apostrophe? or removing it altogether for that matter?
That might screw things up a bit...


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#3 2008-11-27 13:57:54

string
Member
Registered: 2008-11-03
Posts: 286

Re: [SOLVED] Setting hostname to...

What does /etc/hosts look like?

Offline

#4 2008-11-27 14:27:40

OutOfPhase
Member
From: The Netherlands
Registered: 2007-03-13
Posts: 33

Re: [SOLVED] Setting hostname to...

Issue solved, see OP. Thanks all. smile

Offline

Board footer

Powered by FluxBB