For Custom VPC, the DNS Hostnames comes Disabled. What is the use of the DNS Hos . . .

Rahil Khan:
for Custom VPC, the DNS Hostnames comes Disabled. What is the use of the DNS Hostname and what impact would it make if it is enabled?

Mohamed Ayman:
Enabling DNS Hostnames in a VPC allows resources to have fully qualified domain names, simplifies DNS setup, and is required for integration with some AWS services. However, it may increase DNS query costs and the risk of DNS-based attacks.

Prince Sarvaiya:
Hi @Rahil Khan,

There are 2 parts to it:

enableDnsHostnames determines whether the instances in a custom VPC can have DNS hostnames assigned to them. This is useful for identifying instances by name rather than IP address.

enableDnsSupport determines whether the VPC will have DNS resolution support. AWS will assign a default DNS server to the VPC, which allows instances in the VPC to resolve DNS names to IP addresses.

> Both of these settings must be enabled for DNS resolution to work within the VPC. If either of these settings is disabled, DNS resolution will not work