Yes, it's your DNS. Check the A record as it needs to have both the www and non-www versions there TO RECEIVE THE REQUESTS. .htaccess if of no use if it doesn't receive the request, is it?
If this is your localhost (test server), then you have the VirtualHost setup for only one version and, probably, nothing in your hosts file. Do go update both of those.