Set custom hostname

I found Add hostname and domain configuration to the network configuration by gibmat · Pull Request #34 · lxc/incus-os · GitHub and incus-os/incus-osd/api/system_network.go at main · lxc/incus-os · GitHub, but I haven’t found a way to leverage those to set the hostname.

(I checked incus admin os system network show but I don’t see a matching key; I tried adding hostname: myservername right under config: but it was silently ignored.)

What made me notice the random hostname was enabling the Tailscale service, as Tailscale uses it as the machine name in the config paneL

I looked through the config options in the webUI, the docs and the forums but haven’t found a way to set the hostname (I’ve changed it manually on Tailscale’s side, but it made me wonder).

Thanks!

config:
  dns:
    hostname: foo
1 Like

Thanks @stgraber for the quick reply, as always.

Something to add to the docs whenever the team has the time!

Cheers

We have it in the examples:

Hmmm that’s rich, I did a Ctrl+f for “hostname” on that page (as well as used the general search box) but didn’t find it…

Sorry for the wasted time, time to go to sleep! :folded_hands:t2: