If $m$ is odd, the group cohomology of the dihedral group $D_m$ of order $2m$ is given by $$H^n(D_m;\mathbb{Z}) = \begin{cases} \mathbb{Z} & n = 0 \\ \mathbb{Z}/(2m) & n \equiv 0 \bmod 4, ~ n > 0 \\ \mathbb{Z}/2 & n \equiv 2 \bmod 4 \\ 0 & n \text{ odd} \end{cases}$$ This is a nice application of the Lyndon-Hochschild-Serre spectral sequence. The calculation uses the assumption, that $m$ is odd, in an essential way. If $m$ is even, several complications will arise ... therefore my question is:
Question. What is the group cohomology of $D_m$ for even $m$?
I have found here the group cohomology of $D_4$, which already looks quite "wild" as compared to the odd case.