We explore oscillations of the solar $^8$B neutrinos in the Earth in detail. The relative excess of night $ u_e$ events (the Night-Day asymmetry) is computed as function of the neutrino energy and the nadir angle $eta$ of its trajectory. The finite energy resolution of the detector causes an important attenuation effect, while the layer-like structure of the Earth density leads to an interesting parametric suppression of the oscillations. Different features of the $eta-$ dependence encode information about the structure (such as density jumps) of the Earth density profile; thus measuring the $eta$ distribution allows the scanning of the interior of the Earth. We estimate the sensitivity of the DUNE experiment to such measurements. About 75 neutrino events are expected per day in 40 kt. For high values of $Delta m^2_{21}$ and $E_ u > $11 MeV, the corresponding D-N asymmetry is about 4% and can be measured with $15%$ accuracy after 5 years of data taking. The difference of the D-N asymmetry between high and low values of $Delta m^2_{21}$ can be measured at the $4sigma$ level. The relative excess of the $ u_e$ signal varies with the nadir angle up to 50%. DUNE may establish the existence of the dip in the $eta-$ distribution at the $(2 - 3) sigma$ level.