[nsd-users] nsd-xfer's return code for IXFR with no updates is not zero

Paul Wouters paul at xelerance.com
Wed Oct 27 23:22:27 UTC 2010

When you run nsd-xfer with the -s 12345 option (serial number) and
there are no updates to this zone, the returning answer will have no
SOA record. However, nsd-xfer returns error code 3.

I am not sure if this should return an error. If I understood correctly
(thanks Jelte), if an IXFR update path is not available, an AXFR would
get returned. So the only case where no SOA is returned is when there
are no updates to our specified IXFR serial?

When attempting to do an IXFR that otherwise would return no valid SOA,
such as querying a server that does not allow you to XFR, nsd-xfer
returns error code 5 (refused)

(hint: the man page does not tell me what return codes I can expect or
what they mean :)

My suggestion is to not return error 3, unless you received some records AND
it contained no SOA records.


More information about the nsd-users mailing list