Changing Hostname with HD Install


Forum: Networking
Topic: Changing Hostname with HD Install
started by: dmoisan

Posted by dmoisan on Jan. 08 2004,22:18
I've got DSL 0.5.1.1 and I need to know how to permanently change the hostname on an already-installed system.

I can do hostname <whatever> or cat <whatever> > /etc/hostname but it will not stick.

What configuration file controls the hostname?

Regards,

Dave

Posted by roberts on Jan. 09 2004,01:55
It is in the file /etc/init.d/knoppix-autoconfig   Search for "Set hostname"

# Set hostname
hostname box

Posted by caulktel on Jan. 12 2004,04:03
Roberts,

    Thanks for the info on changing the hostname, I was wondering the same thing, and it worked great! Thanks again.

Joel

Posted by dmoisan on Jan. 22 2004,04:07
Worked for me.  Thanks!
Posted by markgamber on Jan. 22 2004,06:31
Dont't forget to change the hostname in /etc/hosts, too! The default, I believe is

127.0.0.1      box localhost

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.