diff options
-rw-r--r-- | networking/nslookup.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c index 8adde14b8..a7dd823f0 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c | |||
@@ -615,9 +615,15 @@ static int send_queries(struct ns *ns) | |||
615 | G.query[qn].name, rcodes[rcode]); | 615 | G.query[qn].name, rcodes[rcode]); |
616 | G.exitcode = EXIT_FAILURE; | 616 | G.exitcode = EXIT_FAILURE; |
617 | } else { | 617 | } else { |
618 | if (parse_reply(reply, recvlen) < 0) { | 618 | switch (parse_reply(reply, recvlen)) { |
619 | case -1: | ||
619 | printf("*** Can't find %s: Parse error\n", G.query[qn].name); | 620 | printf("*** Can't find %s: Parse error\n", G.query[qn].name); |
620 | G.exitcode = EXIT_FAILURE; | 621 | G.exitcode = EXIT_FAILURE; |
622 | break; | ||
623 | |||
624 | case 0: | ||
625 | printf("*** Can't find %s: No answer\n", G.query[qn].name); | ||
626 | break; | ||
621 | } | 627 | } |
622 | } | 628 | } |
623 | bb_putchar('\n'); | 629 | bb_putchar('\n'); |