- Newest
- Most votes
- Most comments
The reason why you are still seeing the DNS name even after turning off the VPC's DNS hostname option is because the DNS resolution is happening through the Amazon DNS server.
To resolve this issue, you can configure your DNS server to forward queries to the Amazon DNS server. This can be done by adding a DNS forwarder in your DNS server configuration.
Here's how you can do it:
-
Open your DNS server configuration tool (e.g., PowerShell, BIND, etc.).
-
Add a forwarder entry for the domain you want to resolve to the Amazon DNS server. For example, if you want to resolve "example.com" to the Amazon DNS server, you would add the following entry:
forwarder 8.8.8.8
- Save the configuration and restart your DNS server.
After configuring the DNS forwarder, all DNS queries for the specified domain will be forwarded to the Amazon DNS server, and the DNS name of your EC2 instances will no longer be visible.
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 8 months ago

I am curious why you are so concerned with removing the DNS entries. I am not sure you will ever be able to remove these as they are part of the pool of IPs available to EC2. They should not however affect your use of the IPs. You can create your own DNS names that are relevant to you.