In a systemd-based OS, you can change the system hostname by editing /etc/hostname manually and then doing what?
Nothing, the system notices automatically.
Restart dhcpd.
Notify systemd to update it by restarting the systemd-hostnamed service.
Run /etc/hostname.