Re: add or delete in updatepolicy.lua
Otto Moerbeek via Pdns-users <[email protected]> Wed, 12 Nov 2025 16:54:09 +0100
| Newsgroups | gmane.network.dns.powerdns.user |
|---|---|
| Message-ID | <[email protected]> |
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 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