lua-resty-resolver icon indicating copy to clipboard operation
lua-resty-resolver copied to clipboard

Question: DNS cache for many upstreams?

Open lathspell opened this issue 3 years ago • 2 comments

The Lua resolver works fine for a single upstream domain but what if there are a couple of them? Copy & paste the Lua block for each of them seems ugly. Is there an easy way to use the cache for arbitrary hostnames or at least have it scale to a dozend backends?

lathspell avatar Jun 08 '21 10:06 lathspell

I've stumbled upon issue #2 where this is answered in quite detail. Maybe you could add the answer to the README?

lathspell avatar Jun 08 '21 10:06 lathspell

@lathspell sure, that could be helpful to others. If you want to send a PR with some updated docs I'd be glad to accept.

jkeys089 avatar Jun 08 '21 11:06 jkeys089