folbricht / routedns

DNS stub resolver, proxy and router with support for DoT, DoH, DoQ, and DTLS
BSD 3-Clause "New" or "Revised" License
476 stars 63 forks source link

Use `bootstrap-resolver` as `resolver` #365

Open Anuskuss opened 8 months ago

Anuskuss commented 8 months ago

Like this:

[bootstrap-resolver]
protocol = "dot"
address  = "1.1.1.1"

[resolvers.myawesomesresolver]
protocol = "dot"
address  = "myawesomesresolver.com"

[routers.router]
routes = [
  { resolver = "bootstrap-resolver", name = '\.com\.$' },
  { resolver = "myawesomesresolver" }
]
alpominth commented 8 months ago

Hi.

I would add an additional resolver with the same config of the bootstrap resolver, it would do the same thing as you are suggesting.

Anuskuss commented 8 months ago

Yeah, I'm already doing that as a workaround. It's just ugly having the same config twice.