* avoided use of the module() builtin to define the Lua module. * rejected bad domain names with a leading dot. * error handling fixes in the "query" and "tcp_query" methods.
…st suite so that we can run existing tests with lua-resty-core.
docs: typo fix from Robert Gieseke.
…r returns a non-zero error code, in which case the error code and error string are now set as the "errcode" and "errstr" fields in the Lua table returned. thanks Matthieu Tourne for requesting this.
…s in the answers table.
… 16-bit message length field. feature: added new method `tcp_query` to enforce pure TCP transportation for the DNS query.