Using a very simple trial function with only one variational parameter, the effects of parabolic confining potentials and magnetic fields on the binding energy of hydrogen impurities in quantum dots are investigated in detail. For a comparison, the perturbation calculations are also performed in the limit cases of weak and strong confinements. The obtained results are suggested to be used for shallow donor impurities in GaAs-type quantum dots.