added dns update function to aws_instance
added check to see if public dns should be updated or not