Reputation: 9
I am able to access my website contents from the Public IPv4 DNS of the EC2 instance as well as my domain and this is creating an issue on google with duplicate content. How do I disable the Public IPv4 DNS which looks like (ec2-5-89-19-335.ca-central-1.compute.amazonaws.com)-→ this is just and example URL or how do I stop any content to display from Public IPv4 DNS?
Upvotes: 1
Views: 2748
Reputation: 12359
You can disable the public DNS name by switching off enableDnsHostnames
: DNS Support in your VPC
Upvotes: 4