Of cause you want to make a proper 301 redirect from a domain.com to www.domain.com to avoid duplicate content and a bad standing at Google.
If your DNS hosting provider doesn’t provide with a redirect solution, you should make the redirect by yourself.