dd.push_back({n.first, n.second});
luaCtx.writeVariable("DNSQType", dd);
- luaCtx.executeCode(R"LUA(
- local tables = {
- DNSQType = DNSQType,
- DNSRCode = DNSRCode
- }
- local function index (table, key)
- for tname,t in pairs(tables)
- do
- local val = t[key]
- if val then
- warnlog(string.format("access to dnsdist.%s is deprecated, please use %s.%s", key, tname, key))
- return val
- end
- end
- end
-
- dnsdist = {}
- setmetatable(dnsdist, { __index = index })
- )LUA"
- );
-
#ifdef HAVE_DNSCRYPT
luaCtx.writeVariable("DNSCryptExchangeVersion", std::unordered_map<string,int>{
{ "VERSION1", DNSCryptExchangeVersion::VERSION1 },
.. versionchanged:: 1.4.0
The prefix is changed from ``dnsdist`` to ``DNSRCode``.
+.. versionchanged:: 1.7.0
+ The lookup fallback from ``dnsdist`` to ``DNSRCode`` was removed.
+
- ``DNSRCode.NOERROR``
- ``DNSRCode.FORMERR``
- ``DNSRCode.SERVFAIL``
.. versionchanged:: 1.4.0
The prefix is changed from ``dnsdist.`` to ``DNSQType``.
+.. versionchanged:: 1.7.0
+ The lookup fallback from ``dnsdist`` to ``DNSQType`` was removed.
+
All named `QTypes <https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4>`__ are available as constants, prefixed with ``DNSQType.``, e.g.:
* ``DNSQType.AAAA``