Redshifts of parent galaxies of supernovae