systemd-hostnamed (org.freedesktop.hostname1)
D-Bus API of systemd-hostnamed for getting and setting the system hostname (static, transient, pretty), deployment/location/icon metadata, chassis type, and machine info.
Documentation
Documentation
https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.hostname1.html