Patch for nsd-notify

Hi everyone:

On past May 23rd I've announced through the list I made a patch to support "source address" on nsd-notify. At that time I was too lazy to sent the patch files.

Now I'm not being lazy, so here we are.

The change was add a new option (-a <address>) to nsd-notify to specify the source address for the outcoming packet.

Also addedd a new option in nsd.zones file. To use it, anyone should write somethink like this:

zone <zonename> <zonefile> notify-source <source address> notify <destination address>

And finally changed nsdc.sh to parse the new option when available.

The code has been tested on a production server using a BIND server as a secondary.

I hope it helps.
(The patchs were made against a NSD 2.3.3 source code)

Kind Regards

(attachments)

patch-server.c (808 Bytes)
patch-nsdc.sh (1.52 KB)
patch-nsd-notify.c (4.86 KB)

Sebastian E. Castro Avila wrote:

Hi everyone:

On past May 23rd I've announced through the list I made a patch to support
"source address" on nsd-notify. At that time I was too lazy to sent the
patch files.

Thank you very much.

Thomas

I'll consider to include the -a param for nsd-notify for the 3.0.x
fix planned for source address selection. The code looks good.

Best regards,
   Wouter