From b75a55b652c6f9c11567cd40e251b56ff80c62f8 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 15 Mar 2019 21:12:46 +0200 Subject: [PATCH] lua-recursor4: Add missing getregisteredname Lua function It was drooped in 4b9a4e966257eb08d4803633f5726b5a144a8e99 and forgotten in a3e7b73528a96a3642adb42dc1e729ea2e8765f4 (cherry picked from commit c2d0a26fecf13a40fa5a74a4cc13d9faef8b1669) --- pdns/lua-recursor4.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 7bdc53643b..5c4ef64109 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -544,6 +544,10 @@ RecursorLua4::RecursorLua4(const std::string& fname) g_snmpAgent->sendCustomTrap(str); } }); + + d_lw->writeFunction("getregisteredname", [](const DNSName &dname) { + return getRegisteredName(dname); + }); ifstream ifs(fname); if(!ifs) { -- 2.47.2