This question already has an answer here:
I want to redirect all requests from
Preferably, this should happen at DNS level. I tried using PTR records, but that simply fails, returning a 404.
wwww.example.com is an ALIAS for an Elastic Load Balancer.
What’s the simplest way to achieve this?