Easy: https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Clients#D...
I want to add, that you can't run your own public DNS server nowadays, because it can be misused for DOS and hosting providers scan for open DNS servers.
So if you want your own public DNS resolver, DOH is much easier.