Let $D\to A$ be a finite type algebra with $D$ a domain. Suppose $V\subset \operatorname{Spec}A$ is open and dense. Is it true that $\dim V=\dim A$?
I know that if $X\to \operatorname{Spec}\Bbbk$ is an integral scheme of finite type over a field then for any non-empty open $U\subset X$ we have $\dim U=\dim X$. Is this possible to globalize to domains?