Dipole and quadrupole anisotropies in homogeneous cosmological models