Trying to classify Dune, I think it's more of a Hyper-Postappocalyptic setting with today's eyes.
I tend to think of Fantasy as linked to philosophy (moral choices etc), while Sci-fi is linked to sociology (what would society be like if...). But those classes don't really help with Dune, so I choose the HPA definition.