The infinite dihedral group as automorphism group