This redirection is a 301 redirect, which means it is seen by Google as permanent and any ‘google love’ for the domain being redirected will be automatically passed on to the end domain name which is good because we are not going to confuse google with the extra domains or dilute the available google ranking over them or have problems due to duplicate content on multiple domains.
Ref to: https://support.google.com/webmasters/answer/93633?hl=en for details on Google and 301