How to hide public DNS

I have an ubuntu instance on amazon; it also gives a public DNS for me, like ec2-XX-XXX-XX-XX.compute-1.amazonaws.com, which opens to the world.

I have my own DNS, which I associate with amazon hosting / instance, and I would like to hide the public DNS with amazon in order to avoid duplication of content for Google SEO.

Is it possible, and if so, how can I do this?

Thanks.

+4
source share
3 answers

All you have to do is set up the web server to respond only to the domain name. From a technical point of view, you can access the web server by IP address if you are not using virtual hosts.

+2
source
  • configure your hostname.
  • configure reverse DNS record
  • delete the A record for the name amazon-hostname (make sure you have the IP address of the server if you do not understand something!)
  • double check each service for configuration errors, force the services to communicate directly with your own domain.
+1
source

You can configure both domains as yours in Google’s Webmaster Tools, and then specify your β€œreal” DNS name as preferred. You do not hide it, you simply tell Google that this is the same site.

0
source

All Articles