aws ec2 modify-private-dns-name-options
Modifies the options for instance hostnames for the specified instance. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--enable-resource-name-dns-a-recordIndicates whether to respond to DNS queries for instance hostnames with DNS A records.--enable-resource-name-dns-aaaa-recordIndicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.--instance-idThe ID of the instance.--private-dns-hostname-typeThe type of hostname for EC2 instances.