m13253 / dns-over-https

High performance DNS over HTTPS client & server
https://developers.google.com/speed/public-dns/docs/dns-over-https
MIT License
1.96k stars 221 forks source link

Multiple upstream servers #143

Open kristoftorok opened 1 year ago

kristoftorok commented 1 year ago

Hi,

is there a way to specify multiple upstream servers and, in case of fail, switch to another one?

Showfom commented 1 year ago

You can use dnsdist as your upstream for load balancer and failover

kristoftorok commented 1 year ago

Hmm, I'll show you what I'd like to do.

Screenshot from 2022-12-22 16-09-59

kristoftorok commented 1 year ago

If you connect to only one dns server(dnsdist) then it is a Single Point of Failure.

Nginx will not know whether DoH Proxy 1 can resolve or not if DNSdist 1 dies. Therefore, in case of a fail, it will still route traffic to the "faulty" DoH server.