[Pdns-users] Return code of pdns_control

Erik Ljungstrom Erik.Ljungstrom at dedipower.org
Mon Jun 21 16:31:23 UTC 2010


Hi,

I've noticed that the pdns_control command returns 0 regardless of the outcome of the operation. It would be great if the return code would indicate that there was a problem.

For example:

$ pdns_control retrieve thisdoesntexist.com ; echo $?
Domain 'thisdoesntexist.com' unknown
0

$ pdns_control retrieve syntax error ; echo $?
syntax: retrieve domain
0

>From a scripting point of view, it would be mighty useful if the return code would be != 0 if there was a problem of some sort.

We're running pdns-2.9.22. Before I start digging through the source, is there any chance this will be changed in a future release?

Cheers,
Erik
This message is intended solely for the use of the individual or organisation to whom it is addressed. It may contain privileged or confidential information. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you should not use, copy, alter, or disclose the contents of this message. All information or opinions expressed in this message and/or any attachments are those of the author and are not necessarily those of DediPower Managed Hosting Ltd or its affiliates.

DediPower Managed Hosting Ltd is registered in England and Wales No. 3625971 Registered Office: Cadogan House, Rose Kiln Lane, Reading, Berkshire, RG2 0HP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20100621/b8c09484/attachment.html>


More information about the Pdns-users mailing list