Setting the hostname in Fedora 13


Should be simple, the number of times I’ve done it, but I’ve ended up searching google for how to do so. Again.

vim /etc/sysconfig/network, add “HOSTNAME=newhost” or change it.

Also, vi /etc/sysconfig/network-scripts/ifcfg-eth0, add “DHCP_HOSTNAME=newhost” for the hostname to be sent with DHCP requests. Have to find out if setting up the hostname with the kickstart file works or not. (ie. network –device eth0 –bootproto dhcp –hostname %name%)

  1. No comments yet.
(will not be published)