In this paper, we determine the semigroup End D of endomorphisms of the infinite dihedral group D, and give a multiplication table for it. We determine the additive structure of the near-rings E(D) generated by the endomorphisms of D, A(D) generated by the automorphisms of D and I(D) generated by the inner automorphisms of D, and determine their radicals and all their maximal right ideals.