--- title: Setting the Hostname in RancherOS --- ## Setting the Hostname --- You can set the hostname of the host using [cloud-config]({[site.baseurl}}/os/configuration/#cloud-config). The example below shows how to configure it. ```yaml #cloud-config hostname: myhost ```