[Pdns-users] LUA SRV records
Kai Stian Olstad
pdns+list at olstad.com
Tue May 30 09:33:32 UTC 2023
On 29.05.2023 15:44, George Asenov via Pdns-users wrote:
> Hello community,
>
> I already searched the documentation but couldn't find an answer to my
> questions.
>
> Is it possible to add LUA SRV record which will return different
> weight based on query source IP address?
>
> Are LUA SRV records supported at all?
<snip />
> _k8splanes._tcp.example1.com 30 IN LUA SRV "view({ {
> {'55.55.55.55/26'}, {'1 6444 k8s-plane1.example1.com'}},{
> {'66.66.66.66/24'}, {'5 6444 k8s-plane1.example1.com'}}})"
>
> A record works as it should but SRV don't.
The documentation[1] say this for view:
"This function also works for CNAME or TXT records."
And it have an example for A record, so I guess that answer your
question.
[1]
https://doc.powerdns.com/authoritative/lua-records/functions.html#view
--
Kai Stian Olstad
More information about the Pdns-users
mailing list