return code from host command

Kurt Boyack kboyack at gmail.com
Tue Aug 30 18:17:04 UTC 2005


On 8/30/05, Smith, Earl (Exchange) <emsmith at bear.com> wrote:
>=20
> When I do a host command on a remote machine (not the DNS server), host
> gives me a return code of 0 even when the machine is not found.  When I
> do the identical command on the DNS server I get the same answer, but
> the return code is 1, which is what I would have expected.  Why?
>=20

I have never seen anything other than a return code of 0 from host
when it is able to give an answer; even if the answer is "not found".
It would make life easier if the host command would return a non zero
exit code when no record is found.



More information about the bind-users mailing list