Let $k$ be a finite field, and let $G$ be the absolute Galois group of $k$, which is isomorphic to $\widehat{\mathbb{Z}}$. Let $\mathcal{C}$ be the category of $G$-modules. Then, we have the following:
For a finite $G$-module $N$, we have $$ Ext^r_{\mathcal{C}}(N, \mathbb{Z}) \simeq H^{r-1}(G,~N^D), $$ where $N^D:=\operatorname{Hom}_\mathbb{Z}(N, \mathbb{Q}/\mathbb{Z})$ is the Pontrjagin dual of $N$, with the natural $G$-action by $(g\phi)(x):=g(\phi(g^{-1}(x)))=\phi(g^{-1}(x))$ for $g\in G$, $x \in N$ and $\phi \in N^D$.
Why is this true?