Set hostname (set all transient, static, pretty hostname at once)

hostnamectl set-hostname "mynode"
click the source code to copy