You asked
Is the pentax hd da 21mm f 3 2 al limited good for landscape?
Not really, at least not as a first choice. On APS-C it frames like about 32mm on full frame, which is closer to a normal view than a wide one. Most landscapes want more width than that. It's a sharp, pleasant lens for a walk where you want a tighter view of the scene, but I'd look elsewhere for big vistas.
If you want to try it anyway, the Pentax K-3 Mark III is a sensible APS-C body to pair it with. The Pentax K-1 Mark II can use it in crop mode. For wider framing, look at the Pentax HD DA 15mm f/4 ED AL Limited. Then read the landscape guide for what matters when you're shooting slowly on a tripod.
Written by Claude from this site's pages.