[Pdns-users] Hooks to run external scripts?
Jan-Piet Mens
jpmens.dns at gmail.com
Sat Jun 6 13:27:36 UTC 2015
> Are there any hooks in PowerDNS to run scripts after certain API calls
> have been processed?
Not to my knowledge.
If you're using MySQL or PostgreSQL as a back-end data store, using a
few TRIGGERs would probably do the trick. I've done this in MySQL a few
times, and that works rather nicely. Launching external processes from
the database engine is very tricky and should be avoided, but with a bit
of glue it can be done. You may be interested in reading [1].
-JP
[1] http://jpmens.net/2011/08/03/dynamic-dns-updates-from-mysql-with-udf-inotify/
More information about the Pdns-users
mailing list