When the sun blocks the moon it's called being in space far away from Earth, because the sun is much farther (~93 million miles) away than the moon (~240 thousand miles) and can't get between earth & moon. (Earth & moon are going around the sun together).
You may be thinking of:
a solar eclipse (eclipse of the sun), when the moon blocks the sun, or
a lunar eclipse (eclipse of the moon), when the moon gets in earth's shadow.
Astronomy classes I took at Swarthmore College. Also, any good book about the solar system.