/*
* Mini nslookup implementation for busybox
*
- * Copyright (C) 2000 by Lineo, inc.
+ * Copyright (C) 1999,2000,2001 by Lineo, inc.
* Written by John Beppu <beppu@lineo.com>
*
* This program is free software; you can redistribute it and/or modify
*
*/
-#warning This applet has moved to netkit-tiny. After BusyBox 0.49, this
-#warning applet will be removed from BusyBox. All maintenance efforts
-#warning should be done in the netkit-tiny source tree.
-
-#include "busybox.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
+#include "busybox.h"
/*
| I'm only implementing non-interactive mode;
struct hostent *host;
if (argc < 2 || *argv[1]=='-') {
- usage(nslookup_usage);
+ show_usage();
}
server_print();
return EXIT_SUCCESS;
}
-/* $Id: nslookup.c,v 1.17 2001/01/24 17:37:07 andersen Exp $ */
+/* $Id: nslookup.c,v 1.22 2001/02/20 06:14:08 andersen Exp $ */