Hello!
On Wed, Jan 21, 2015 at 1:26 PM, Guilherme wrote:
> I can't resolve names in a lua script executed by resty command-line
> utility.
>
The latest resty utility parses the local /etc/resolve.conf file to
get the name servers used system wide.
I've just tried your code example as-is on my side with the resty
utility shipped by OpenResty 1.7.7.2 RC1 [1] and it works flawlessly.
BTW, because there are more than more lua-resty-http library in the
wild (like liseen's and pintsized's), please always be explicit about
which version you're using to save the trouble ;)
Regards,
-agentzh
[1] https://groups.google.com/d/msg/openresty-en/Tt7-iQtiJIc/lJBVjltoQtEJ