Get/set system hostname in Linux

Get:

hostnamectl status
Set:
hostnamectl hostname db.example.com