Take two shots.
Expose one shot for the sky and the other for the foreground, overlay the two images with the sky exposure as the top layer, erase the foreground out of this layer (carefully).
You should now have a perfectly exposed image.
You need to remember that the cameras light meter can be fooled.
Thats why pros tend to have a lightmeter in their kit.