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
Tag: ec2
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