how to configure fully qualified domain name in aws ec2 ubuntu 16.04 code example Example: set hostname on command line ec2 sudo hostnamectl set-hostname yourhostname