Saturday, March 28, 2009

Change your Hostname without Rebooting

Changing the hostname / domainname on any linux distributions:

You can also change your hostname temporarily on any disitribution with hostname comand:

hostname home.randombugs.com

and this will remain until next reboot.


To change your hostname permanently on any distribution just edit /etc/sysctl.conf and add:

kernel.hostname=[hostname]

and to make your changes active just run:

sysctl -p

No comments: