How to enable dns support and enable dns hostname AWS (Amazon Web Services)

To enable dns support and dns hostname, you can following this command in your command Line :

# aws ec2 modify-vpc-attribute --vpc-id vpc-81we7fe4 --enable-dns-support "{\"Value\":true}"

# aws ec2 modify-vpc-attribute --vpc-id vpc-87we7fe4 --enable-dns-hostnames "{\"Value\":true}"

Note : change vpc-87we7fe4 to your VPC ID.

Save the day !!!

Comments