Hi there!
I have 2 domains managed in one account (example.com and example.io) and I’m trying to set up a CNAME record in the first domain example.com that should make a redirect to subdomain of my second domain boo.example.io, for example:
foo.example.com → boo.example.io
I have setup a CNAME record and tried different settings (DNS only/proxied) - unfortunately, it won’t work(
CNAMEs do not provide redirection. A CNAME tells a visitor to send traffic for foo.example.net to the address of bar.example.com. Assuming that we are talking about web traffic, the request to bar.example.com is still sent with a host header of foo.example.net. This means that the webserver running on bar.example.com needs to be configured to handle requests for foo.example.net.
If you just want anyone who goes to foo.example.net to be redirected to bar.example.com you need to configure redirection. This Community #tutorial covers it in detail. The hostname that you want to redirect will need to be proxied.
Thanks for your reply, looks like I misled you with the redirection word… Long story short - I want to give the opportunity to other domains to create in their registrar some subdomain (CNAME) that provides internet traffic to my subdomain… foo.user1-domain.com -> bar.my-domain.io -> aws.load-balancer.com bar.user2-domain.net -> bar.my-domain.io -> aws.load-balancer.com boo.user3-domain.io -> bar.my-domain.io -> aws.load-balancer.com
Right now I’m playing with my domain in the com zone and trying to replicate the described behavior.
Your clients will need to create their subdomain in their DNS, which may or may not be with their registrar. My own preference is to avoid using registrar provided DNS.
Yes, that’s right, clients on their side will create a CNAME that should lead to a dedicated subdomain in my domain (each user has his own unique subdomain in my DNS). The problem is that when I create a subdomain in my domain.com that leads to the desired subdomain in the domain.io, the request is timed out…