Let $D$ be a PID and let $\mathrm{Frac}(D)$ be its field of fractions. I want to classify the intermediate rings $D\subseteq R\subseteq \mathrm{Frac}(D)$.
Theorem: Every such ring $R$ is a localization $D[S^{-1}]$ for some subsemigroup $S\subseteq (R,\times,1)$.
Proof: Given $D\subseteq R\subseteq\mathrm{Frac}(D)$ consider the set of denominators $$S:=\left\{ b\in D: \frac{a}{b}\in R \text{ and } \mathrm{gcd}(a,b)=1\right\}.$$ If $b\in S$ then there exists $\frac{a}{b}\in R$ with $\mathrm{gcd}(a,b)=1$ by definition. Since $D$ is a PID there exist $x,y\in D$ such that $1=ax+by$. Then dividing by $b$ gives $$\frac{1}{b}=\frac{a}{b} x + y.$$ Since $R$ is a ring this implies that $\frac{1}{b}\in R$. Now we can see that $S$ is a subsemigroup of $(D,\times,1)$. Indeed, we have $1\in S$, and if $b_1,b_2\in S$ then by the above remarks we have $\frac{1}{b_1},\frac{1}{b_2}\in R$, hence $\frac{1}{b_1b_2}\in R$. It follows that $b_1b_2\in S$. Thus the localization $D[S^{-1}]$ is well-defined.
I claim that $R=D[S^{-1}]$. Indeed, we have $R\subseteq D[S^{-1}]$ by definition. Conversely, consider any $\frac{a}{b}\in D[S^{-1}]$, i.e., with $b\in S$. By the above remarks this implies $\frac{1}{b}\in R$ and hence $\frac{a}{b}=a\frac{1}{b}\in R$. $\square$
Thus we obtain a surjective map from the subsemigroups of $(D,\times,1)$ to the rings between $D$ and $\mathrm{Frac}(D)$. This map is not injective because it is possible to have $D[S^{-1}]=D[T^{-1}]$ for different subsemigroups $S,T$. However, given $S$, there is a largest such subsemigroup $T$ defined by $$T=\left\{a\in D : ab\in S \text{ for some } b\in D\right\}.$$ Such sets $T$ are characterized by the condition that for all $a,b\in D$ we have $$ab\in T \Longleftrightarrow a\in T \text{ and } b\in T.$$ Thus, since $D$ is a UFD, these sets (and therefore the intermediate rings $D\subseteq R\subseteq \mathrm{Frac}(D)$) are in bijection with sets of prime elements.
Finally, my question is this:
Is there a name for a set $S\subseteq D$ such that $1\in S$ and for all $a,b\in D$ we have $$ab\in S \Longleftrightarrow a\in S \text{ and } b\in S\,\,?$$
I have been unable to find any references. Thanks.