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