Using DNS to redirect to another URL with a path

I’m trying to redirect a domain to another via DNS.

I know that using IN CNAME it’s posible. IN CNAME
What i need is a redirection with a path. When someone types, it should take them to to

I know it can be done using Web Server facilities, but I need DNS redirection.

Is this possible?

With CyberPanel this is only possible via .htaccess redirects.