That's a DNS-level redirect, not something you set up in NetSuite. You need to create a 301 redirect at your domain registrar or hosting provider to send the apex domain (
domain.com) to the www subdomain. NetSuite can only manage traffic that arrives at its servers, but the redirect has to take place before that, at the DNS or hosting level where you control the domain routing.