Had the problem again a while ago, even if I had an A record (without www) pointing to the right IP.
One of these things solved it:
1) I added a CNAME record pointing the www.-version of the domain to the domain without www.
2) I allowed traffic on port 443 (https) in the firewall