else {
lua_push_dns_reply (L, reply);
- lua_pushboolean (L, reply->authenticated);
+ lua_pushboolean (L, reply->flags & RDNS_AUTH);
lua_setfield (L, -3, "authenticated");
+ lua_pushboolean (L, reply->flags & RDNS_TRUNCATED);
+ lua_setfield (L, -3, "truncated");
+
/* result 1 - not and error */
lua_pushboolean (L, true);
/* push table into stack, result 2 - results itself */
* 3 - entries | nil
* 4 - error | nil
* 5 - user_str
- * 6 - reply->authenticated
+ * 6 - reply->flags & RDNS_AUTH
* 7 - server
*/
if (reply->code != RDNS_RC_NOERROR) {
lua_pushnil (L);
}
- lua_pushboolean (L, reply->authenticated);
+ lua_pushboolean (L, reply->flags & RDNS_AUTH);
const gchar *servname = rdns_request_get_server (reply->request);