Interesting question! Here is a proof when $R$ is ageneralization which includes the Dedekind domain and $M=R$. The general case for $M$ arbitrary may follow but I have not checked carefully.
Let $N^*$ denote $Hom(N,R)$ and $D(N)$ denote $Ext_R^1(N,R)$. It is easy to check that for a torsion $R$-module $D^2(N)\cong N$. In particular $ann(D(N)) = ann(N)$.
Now dualize the exact sequence $0 \to I \to R \to R/I \to 0$ one gets: $$ 0 \to R\to I^* \to D(R/I) \to 0$$
Proposition: Let $R$ be a Noetherian regular domain with $n=\dim R$ and $I\subset R$ an ideal such that $R/I$ is artinian and Gorenstein. Then for a finitely generated $R$-module $M$, we have $Ext^n(R/I,M)\cong M/IM$.
Since(when $R$ is a Dedekind domain $I^*$$R/I$ is also an ideallocally a quotient of $R$. It is well-known that ideals in $R$ are strongly 2-generated (they can be generated by at most 2 elements with the first one arbitrary)a DVR, so $D(R/I)$it is locally a cyclic $R$-module. But since the annihilator of that module is equal to $I$hypersurface, it must be $R/I$thus Gorenstein).
About the general case, there is a natural map:
$$ Ext^n_R(N,R)\otimes M \to Ext^n_R(N,M) $$ By the case $M=R, N=R/I$ and $n=1$ it gives a map $M/IM \to Ext^1_R(R/I,M)$Proof. If one can check that this map localizes naturally, then it reducesIt is enough to the PID case, but I have not checked. UPDATE: actually it can be shown that ifprove for $pd_RN = n$ then the map above is an isomorphism, completing$M=R$ because of the proof.following
Claim: if $N$ is an artinian $R$-module then the natural map $Ext^n_R(N,R)\otimes M \to Ext^n_R(N,M)$ is an isomorphism.
Here's why: We have $pd_RN = n$. Let $P_{\bullet}: 0\to P_n \to \cdots \to P_0$ be a projective resolution of $N$. Then one compute the LHS by taking cohomologiesthe cohomology at the end of $Hom(P_{\bullet},R)$ and tensor with $M$, and the RHS by taking cohomology at the end of $Hom(P_{\bullet},M)$. But tensor product is right-exact, proving that we get the same answer.
FinallyAssuming we can prove for $M=R$, whenthen apply the claim with $R$ is regular local of dimension$N=R/I$ completes the proof.
Now we prove it for $n$ then$M=R$. Since $Ext^n_R(N,R)\cong N$ if$R/I$ is artinian, we only need to prove it after localizing at each maximal ideal containing $N$ has finite length$I$. Thus we can assume (by Grothendieck$(R,m)$ is local duality). So perhaps your question can be viewed as some kindBut by Local Duality $Ext^n(R/I,R)$ is isomorphic to the Matlis dual of non-local duality$H^0_m(R/I) =R/I$. But since $R/I$ is Gorenstein this dual is actually isomorphic to $R/I$. QED