Hello!
On Thu, Jan 28, 2016 at 11:45 AM, Tim Landscheidt wrote:
> Actually I'm working on something like that right now and
> was surprised that there is no support for the native func-
> tions gethostbyname(), etc. Does one really need to use
> resty.dns.resolver
> (https://github.com/openresty/lua-resty-dns)?
The gethostbyname() syscall can be blocking horribly and even the
nginx core does not use it at request time.
Yes, use of lua-resty-dns is recommended. BTW, the latest master now
supports `reverse_query()`.
Regards,
-agentzh