#include "ext/luawrapper/include/LuaContext.hpp"
void AuthLua4::postPrepareContext() {
- stubParseResolveConf();
-
d_lw->writeFunction("resolve", [](const std::string& qname, uint16_t qtype) {
std::vector<DNSZoneRecord> ret;
std::unordered_map<int, DNSResourceRecord> luaResult;
* First, parse the `resolver` configuration option for IP addresses to use.
* If that doesn't work, parse /etc/resolv.conf and add those nameservers to
* s_resolversForStub.
+ *
+ * mainthread() calls this so you don't have to.
*/
void stubParseResolveConf()
{