host.c revision 3806886c281873e563420a86a024bd09e57fd90e
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2000, 2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
693d70f96fc2b3c1830580edcc29146afd6a9f61Mark Andrews/* $Id: host.c,v 1.74 2001/07/28 00:55:15 bwelling Exp $ */
extern unsigned int timeout;
extern int ndots;
extern int tries;
extern char *progname;
static const char *opcodetext[] = {
static const char *rcodetext[] = {
static const char *rtypetext[] = {
show_usage(void) {
dighost_shutdown(void) {
int diff;
if (!short_form) {
if (!short_form)
isc_region_t r;
isc_buffer_usedregion(b, &r);
isc_buffer_free(&b);
static isc_result_t
isc_region_t r;
const char *rtt;
if (headers)
return (ISC_R_SUCCESS);
return (result);
if (!short_form) {
&target);
return (result);
#ifdef USEINITALWS
if (first) {
if (!short_form) {
if (no_rdata)
(char *)r.base);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
isc_region_t r;
if (headers)
&target);
return (result);
return (ISC_R_SUCCESS);
if (listed_server) {
sizeof(sockstr));
return (ISC_R_SUCCESS);
if (!short_form) {
!short_form) {
return (result);
if (!short_form)
return (result);
!short_form) {
return (result);
!short_form) {
return (result);
return (result);
if (!short_form)
return (result);
!= EOF) {
show_usage();
setup_libs();
setup_system();
isc_app_run();
cancel_all();
destroy_libs();