Click to See Complete Forum and Search --> : Setting hostname from terminal


eXtremist
04-18-2001, 02:06 PM
How can I set up my hostname through a terminal?

Normally I load up linuxconf and do it there, but I'm at school and want to change it at home.

tristatecomputer
04-18-2001, 02:10 PM
I belive from terminal jsut type

hostname hostname.domainname.org

should do it...

EyesWideOpen
04-18-2001, 02:28 PM
Check out the files /etc/HOSTNAME and /etc/hosts.

posterboy
04-18-2001, 04:37 PM
In RedHat, at least, what controls this is the name in /etc/sysconfig/network, as the others, like /etc/HOSTNAME are set from there. Ray