Bug 235915 - dns/nsnotifyd [patch] rc script - multiple instances.
Summary: dns/nsnotifyd [patch] rc script - multiple instances.
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dan Langille
URL: http://dotat.at/prog/nsnotifyd/
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-21 12:02 UTC by Leo Vandewoestijne
Modified: 2019-03-05 13:39 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (dvl)


Attachments
nsnotifyd rc (951 bytes, text/plain)
2019-02-21 12:02 UTC, Leo Vandewoestijne
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Vandewoestijne 2019-02-21 12:02:43 UTC
Created attachment 202231 [details]
nsnotifyd rc

I tried nsnotifyd, and could imagine someone would like to run different scripts, for -for example- ins/del/upd.
So I played with the rc script that Mark made (see below), and and enabled it for multiple use.

Not sure if I will use it myself, but I thought could be useful to others.
So, this is more a suggestion that a "problem report".

Further I'm not 100% sure if my adaptions are the most adequate, though peeking at other rc scripts I think it's OK.
Comment 1 Dan Langille freebsd_committer 2019-02-26 01:29:41 UTC
Can you elaborate more upon the different scripts?

You run multiple instances of nsnotifyd so you can do different things depending upon which zones are updated?
Comment 2 Leo Vandewoestijne 2019-03-05 13:39:33 UTC
Almost; different functions at different port, for example:

notify for dom.tld at port 5301 => add.sh
notify for dom.tld at port 5302 => xfr.sh
notify for dom.tld at port 5303 => del.sh

And with those scripts maintain DNS servers with limitations (like NSD that doesn't fully support DDNS, or PowerDNS which also has only partial support).

Also each server (Bind, Knot, NSD, Yadifa, PowerDNS) have it's own different remote control commands. This setup would allow to execute commands locally on a secondairy.

I have to add that I'm currently using another solution, but I thought it was a useful contribution.
However, I haven't tried it's support for metazones.
If you think it overcomplicates / rather keep it simple, then just ignore/close this report.