So I'm new to actually caring about how DNS's actually work, as opposed to plugging stuff in and troubleshooting. I have an application that will display different information depending on what domain the user is visiting from. However, I'm not quite sure how it works on my end.
In my head I have two possible solutions: 1. My DNS creates a new CNAME for each instance 2. I keep the DNS simple with a wildcard *.mysite.com
Are both of these ways possible?
- Are both of these ways possible?
- Regarding option 2, will I be able to tell what CNAME a user is coming from so I can display the proper information?
- If they are both doable, which one would be better?
My stack is centered on AWS, so I'm using Route 53, and would be using their API if I were to go the 1st option.