<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 13px;">
<div style="">Hi,<br>
<br>
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. 
<br>
<br>
For example:<br>
<br>
$ pdns_control retrieve thisdoesntexist.com ; echo $?<br>
Domain 'thisdoesntexist.com' unknown<br>
0<br>
<br>
$ pdns_control retrieve syntax error ; echo $?<br>
syntax: retrieve domain<br>
0<br>
<br>
>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.
<br>
<br>
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?<br>
<br>
Cheers,<br>
Erik<br>
</div>
</div>
<h6><font color="gray" face="Tahoma">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.
<p>DediPower Managed Hosting Ltd is registered in England and Wales No. 3625971 Registered Office: Cadogan House, Rose Kiln Lane, Reading, Berkshire, RG2 0HP
</h6>
</p>
</font>
</body>
</html>