I have rerouted my domain http://domain1.com to http://domain2.com utilizing a 301 redirect.

Now i must redirect subdomain.domain1.com to domain2.com/folder once the user arrives on that url.

Can One do that in dns? Or perhaps in another way?

Appreciate your help :)

You can't do that with DNS. DNS can be used to map domains to Ip(es). It cannot resolve a website to some specific URI.

You are able to accomplish this using .htaccess file. You can test adding following lines towards the file and find out whether or not this works.

RewriteEngine on
RewriteCond % ^(?:world wide web.)?subdomain.domain1.com$
RewriteRule ^(.*)$ http://world wide web.domain2.internet/subfolder$1


RewriteEngine on
RewriteCond % ^subdomain.domain1.com$
RewriteRule ^(.*)$ world wide web.domain2.internet/subfolder$1