The earth's magnetic fleld extends:
from the earth's core to outer space
from the center of the earth to the sun
from the earth's surface to the upper atmosphere