domains – point CNAME record to A record

On my domain, I want to have a generic subdomain that point to the folder test, and various cname (es., that all points to

I’m using Hetzner as provider, I created an A record ( and a CNAME ( that point on the A record, and to make it works I had to add as an addon domain on Hetzner.

Any suggestion? Any possible solution that doesn’t involve adding cname to addon domain?