This is more when you want to create an AMI from an EC2 image and you want it to have a persistent hostname. This was
Category: ec2
Prepare a Centos6 AMI to use on C5/M5 Instances
This blog is as much for me as anyone else: If it helps anyone else out there in IT land that’s great and I would
Ensure DNS Nameservers are correct on EC2 startup
vim /etc/sysconfig/network-scripts/ifcfg-eth0 add PEERDNS=no sudo vim /etc/resolv.conf make sure this file is as you want it and then make a copy sudo cp resolv.conf resolv.conf.bk