DoH initial resolution of the dns address

So I have setup dns over https but I am not sure how this is supposed to be more privacy than just regular dns.

Suppose I use dns.google, then doesnt the application first need to resolve "dns.google" (to 8.8.8.8 or whatever) in order to make the https connection?

Then couldnt someone simply hijack the initial resolve to something else and the system is once again compromised? How does DoH know to contact 8.8.8.8 from "https://dns.google" at the start?