folbricht / routedns

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

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

Open Anuskuss opened 7 months ago

Anuskuss commented 7 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 7 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 7 months ago

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