SYSTEMD-HO...D.SERVICE(8)

๐Ÿ’– systemd-hostnamed.service, systemd-hostnamed ๐Ÿ’–

okay bestie, come sit with me, we're talking about systemd-hostnamed.service and its buddy the binary systemd-hostnamed โ€” they live in the systemd-hostnamed.service manpage (section 8, iykyk) and they are literally the daemon that lets programs control your system's hostname. yes. THE hostname. the one on the tin. ๐ŸŽ€


โœจ SYNOPSIS โœจ

systemd-hostnamed.service

/usr/lib/systemd/systemd-hostnamed

like. that's it. that's the whole vibe. ๐Ÿฆ‹


๐ŸŒธ DESCRIPTION ๐ŸŒธ

so systemd-hostnamed.service is a system service, and its whole main character job is letting user programs change the system's hostname plus a little pile of related machine metadata. it does not just sit there running forever like some drama queen โ€” it gets automatically activated on request and then terminates itself when unused. self-care!! we love a service that knows when to leave the party. ๐Ÿ’…

right now it offers access to five variables, and here they all are, no skipping, no cap:

  • the current hostname โ€” example: "dhcp-192-168-47-11"
  • the static (configured) hostname โ€” example: "lennarts-computer"
  • the pretty hostname โ€” example: "Lennart's Computer"
  • a suitable icon name for the local host โ€” example: "computer-laptop"
  • a chassis type โ€” example: "tablet"

where does all this live tho?? good question bestie, here's the tea:

  • the static hostname is stored in /etc/hostname โ€” peep hostname(5) for more info ๐Ÿ“
  • the pretty hostname, the chassis type, and the icon name are stored in /etc/machine-info โ€” peep machine-info(5) ๐Ÿ“

and if you're like "okay but I don't wanna talk to D-Bus directly like a caveman" โ€” same!! that's what hostnamectl(1) is for, it's the command line client to this service. obsessed. ๐Ÿซถ

want the actual D-Bus API deets? go read org.freedesktop.hostname1(5) and org.freedesktop.LogControl1(5). they've got the full description, and they are lowkey iconic. โญ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€


and that's the whole page bestie, go forth and name your hosts something cute ๐ŸŒˆ๐Ÿ’œ

systemd 262.1 โ€” SYSTEMD-HO...D.SERVICE(8) โ€” mwah, kisses, bye!! ๐Ÿ˜ญ๐Ÿ’–

๐Ÿ“ฆ where this page comes from
  • arch rolling: systemd 262.1-1 ยท LGPL-2.1-or-later AND CC0-1.0 AND GPL-2.0-or-later AND MIT-0
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms