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โ peephostname(5)for more info ๐ - the pretty hostname, the chassis type, and the icon name are stored in
/etc/machine-infoโ peepmachine-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