How to have mutltiple dns over tls in stubby?

i need to have a lot of dns in stubby looked for documentation and failed to find info useful for having at least 5 dns providers in stubby (d.o.t)

only found this, would like to have: google, cloudflare, adguard, and whatever i would like to have, any tought?

DoT provider

Stubby is configured with Cloudflare DNS by default. You can change it to Google DNS or any other DoT provider including your own DoT server with Nginx. Use resolvers supporting DNSSEC validation if necessary. Specify several resolvers to improve fault tolerance.

Configure DoT provider while uci -q delete stubby.@resolver[0]; do :; done uci add stubby resolver uci set stubby.@resolver[-1].address="2001:4860:4860::8888" uci set stubby.@resolver[-1].tls_auth_name="dns.google" uci add stubby resolver uci set stubby.@resolver[-1].address="2001:4860:4860::8844" uci set stubby.@resolver[-1].tls_auth_name="dns.google" uci add stubby resolver uci set stubby.@resolver[-1].address="8.8.8.8" uci set stubby.@resolver[-1].tls_auth_name="dns.google" uci add stubby resolver uci set stubby.@resolver[-1].address="8.8.4.4" uci set stubby.@resolver[-1].tls_auth_name="dns.google" uci commit stubby /etc/init.d/stubby restart

source: https://openwrt.org/docs/guide-user/services/dns/dot_dnsmasq_stubby

Stubby is an application that acts as a local DNS stub resolver using DNS over TLS, not "dns over http".

You can add more resolvers as shown there: https://openwrt.org/docs/guide-user/services/dns/dot_dnsmasq_stubby#dot_provider

1 Like

It's not the same, the protocols are totally different - but both are (securely) encrypted.

3 Likes

i understand but how can i have like 10 dns for redundance with stubby ?

could you guide me so i can have like 10 dns or 20 dns providers for backup in case main fails?

in the provided i see how to change from default to google but in case i want google > cloudflare > quaddns > others how can i do?

Stubby uses round-robin by default, it should be more efficient on average than sequential mode:

1 Like

u are a gem , thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.