lua-resty-dns - Lua DNS resolver for the ngx_lua based on the cosocket API
$ luarocks install lua-resty-dns
This Lua library provies a DNS resolver for the ngx_lua nginx module:
This Lua library takes advantage of ngx_lua's cosocket API, which ensures 100% nonblocking behavior.
Note that at least ngx_lua 0.5.12 or OpenResty 184.108.40.206 is required.
Also, the bit library is also required. If you're using LuaJIT 2.0 with ngx_lua, then the bit library is already available by default.
Note that, this library is bundled and enabled by default in the OpenResty bundle.
IMPORTANT: to be able generate unique ids, the random generator must be properly seeded using math.randomseed prior to using this module.
0.21-13 years ago7,262 downloads