Am 12.11.25 um 16:54 schrieb Otto Moerbeek:
On Wed, Nov 12, 2025 at 01:08:49PM +0100, Daniel Feuchtinger via Pdns-users
wrote:
Hi,
how do I know, if an update is a deletion inside the lua updatepolicy function
shown here:
https://doc.powerdns.com/authoritative/dnsupdate.html#dnsupdate-update-policy
I would like to log add/update, but not deletions.
Can I get additional information like TTL in the policy script too?
The docs say:
int getQType() - record type, it can be 255(ANY) for delete
If the type is ANY, it must be a delete, but if it's another
type, it could be add or delete I think.
Thanks for the reply, I'll have to work around the problem with
information outside of the policy script I guess.
now I do wonder how that maps to the various types of deletes listed
in section 2.5.2 - 2.5.4 of RFC 2136. Maybe somebody more knowledable
in this area can tell us more.
TTL value is not available, only the fields mentioned in the docs are.
-Otto
_______________________________________________
Pdns-users mailing list
[email protected]
https://mailman.powerdns.com/mailman/listinfo/pdns-users