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
_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to