Skip to content

In dnsdist local address and port are not exposed in Lua #3198

Closed
@jstrika

Description

@jstrika

In dnsdist --version : 0.0.g5a3409c , configuration file has support for Lua functions but "local" address and port are not accessible.

In example blockFilter(remote, qname, qtype, dh) from https://github.com/PowerDNS/pdns/blob/master/pdns/dnsdistconf.lua we can access "remote" address and port using remote:tostring(), remote:tostringWithPort(), remote:getPort() but not the "local" address and port.

Since dnsdist was recently introduced and not yet widely implemented, did you consider keeping consistency with new pdns v4 and pass "dq" native object instead of strings like: blockFilter(dq) ? That way the community can benefit from "portable" sample code between 2 products and use someting like: dq.remoteaddr:toStringWithPort().." to "..dq.localaddr:getPort()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions