- Newest
- Most votes
- Most comments
For a VPC you can edit whether the settings are enabled or not. You just highlight the VPC (mark the checkbox next to it) you want to edit and then go to the actions menu in order to choose edit DNS Hostname or DNS Resolution.
Hi! Good question.
When an instance is lauched into a VPC, it is typically provided with a private DNS hostname. If the instance is configured with a public IPv4 address and the VPC DNS attributes are enabled, it will be provided with a public DNS hostname.
Keep in mind that the format of the private DNS hostname depends on the configuration of the EC2 instance when it is launched.
To change the DNS support provided for the VPC, you can follow along to do the following:
- Setting the enableDnsHostnames attribute or the enableDnsSupport attribute
- https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-updating
- Console: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-updating
- CLI: modify-vpc-attribute to enable/disable dns hostnames or to enable/disable dns support. Keep in mind these attributes cannot both be updated in the same request. Thus to change both, 2 CLI commands will be needed.
https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html#AmazonDNS
Relevant content
- asked 10 months ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago