SYSTEMD-H....SERVICE(8) systemd-hostnamed.serviceSYSTEMD-H....SERVICE(8)systemd-hostnamed.service, systemd-hostnamed - Daemon to control system hostname from programs
systemd-hostnamed.service /usr/lib/systemd/systemd-hostnamed
systemd-hostnamed.service is a system service that may be used to change the system's hostname and related machine metadata from user programs. It is automatically activated on request and terminates itself when unused. It currently offers access to five variables: • 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") The static hostname is stored in /etc/hostname, seehostname(5) for more information. The pretty hostname, chassis type, and icon name are stored in /etc/machine-info, seemachine-info(5). The toolhostnamectl(1) is a command line client to this service. Seeorg.freedesktop.hostname1(5) andorg.freedesktop.LogControl1(5) for a description of the D-Bus API.
systemd(1),hostname(5),machine-info(5),hostnamectl(1),sethostname(2),org.freedesktop.hostname1(5)
This page is part of thesystemd (systemd system and service manager) project. Information about the project can be found at ⟨http://www.freedesktop.org/wiki/Software/systemd⟩. If you have a bug report for this manual page, see ⟨http://www.freedesktop.org/wiki/Software/systemd/#bugreports⟩. This page was obtained from the project's upstream Git repository ⟨https://github.com/systemd/systemd.git⟩ on 2025-08-11. (At that time, the date of the most recent commit that was found in the repository was 2025-08-11.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which isnot part of the original manual page), send a mail to man-pages@man7.orgsystemd 258~rc2SYSTEMD-H....SERVICE(8)Pages that refer to this page:hostnamectl(1), varlinkctl(1), hostname(5), machine-info(5), org.freedesktop.hostname1(5), os-release(5), systemd.directives(7), systemd.index(7)
HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface. For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere. Hosting byjambit GmbH. | ![]() |