/*
* Copyright (C) 2000, 2001, 2004, 2005, 2007, 2009, 2012, 2015-2017 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*! \file
* \author
* Principal Author: Bob Halley
*/
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <isc/commandline.h>
#include <dns/dispatch.h>
#include <dns/resolver.h>
static unsigned int level = 0;
static void
log_init(void) {
unsigned int flags;
/*
* Setup a logging context.
*/
/*
* Create and install the default channel.
*/
&destination, flags) ==
}
static void
}
}
static void
}
static void
unsigned int options;
if (want_event)
dns_rootname, 0, options, 0,
dns_fixedname_name(&target), 0,
&find);
if (result == ISC_R_SUCCESS) {
/*
* We have at least some of the addresses for the
* name.
*/
} else {
/*
* We don't know any of the addresses for this
* name.
*/
/*
* And ADB isn't going to send us any events
* either. This query loses.
*/
}
/*
* If the DNS_ADBFIND_WANTEVENT flag was set, we'll
* get an event when something happens.
*/
}
} else if (result == DNS_R_ALIAS) {
} else {
printf("dns_adb_createfind() returned %s\n",
}
if (done) {
}
}
static void
if (type == DNS_EVENT_ADBMOREADDRESSES)
else if (type == DNS_EVENT_ADBNOMOREADDRESSES) {
printf("no more addresses\n");
} else {
}
}
static void
}
int
int ch;
isc_buffer_t b;
== ISC_R_SUCCESS);
switch (ch) {
case 'd':
break;
case 'v':
break;
case 'w':
break;
}
}
log_init();
if (verbose) {
}
dispatchmgr = NULL;
== ISC_R_SUCCESS);
&cache) == ISC_R_SUCCESS);
&view) == ISC_R_SUCCESS);
{
unsigned int attrs;
if (isc_net_probeipv4() == ISC_R_SUCCESS) {
512, 6, 1024,
== ISC_R_SUCCESS);
}
if (isc_net_probeipv6() == ISC_R_SUCCESS) {
512, 6, 1024,
== ISC_R_SUCCESS);
}
timermgr, 0,
}
{
== ISC_R_SUCCESS);
}
dns_rootname, 0, NULL) ==
(void)isc_app_run();
if (verbose)
return (0);
}