lua-resty-resolver
lua-resty-resolver copied to clipboard
Question: DNS cache for many upstreams?
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?
I've stumbled upon issue #2 where this is answered in quite detail. Maybe you could add the answer to the README?
@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.