Configure a Static Hostname on Your AWS EC2 Linux Instance

Add the following line into /etc/cloud/cloud.cfg

preserve_hostname: true
Last updated on by Yasitha Bogamuwa