This was the first google result for NextDNS CLI -
https://github.com/nextdns/nextdns
looks like it proxies standard DNS traffic to NextDNS via DOH, and does some other fancy stuff including caching, zeroconf discovery, and conditional forwarding.
Dang, this looks like a nice option for my home setup - I may give it a try!!
I went down the edgerouter path (edgerouter x sfp) and have regrets, in case others get ideas (or if someone has fixes, I'm all ears). Don't get me wrong, the device works great, I was entertained by it running vyatta which I had experience with at the time, and I just got https://github.com/nextdns/nextdns running on it which is super awesome. But I have a bunch of devices connecting to wifi, which seems to work waaay better integrated with the unifi line of products. I'm probably going to swap it out one of these days, and I can make due with running the controller on a 24/7 box to smooth it out a bit, but I'd totally go unifi down the line if I had to do over.
cloudflared, knot-resolver, stubby, unbound, CoreDNS can be run as DoH and/or DoT stub and/or recursive resolvers, locally.
The easiest stub resolver to setup would be nextdns' client: https://github.com/nextdns/nextdns
1. Check https://github.com/nextdns/nextdns
2. JS can’t set a custom resolver, I don’t think DoH can help with that. If yes, source please