68 if (
ov_pipe && !
ads)
usageerr(
"-f/--pipe not consistent with domains on command line");
169 switch (qun->
pqfr.ttl) {
204 for (minrcode=0, spp=statuspoints;
205 spp < statuspoints + (
sizeof(statuspoints)/
sizeof(statuspoints[0]));
207 if (st > *spp) minrcode++;
212 const char *statustypeabbrev, *statusabbrev, *statusstring;
219 if (
printf(
"%s %d %s ", statustypeabbrev, st, statusabbrev)
222 if (qun->
pqfr.show_cname)
229 const char *
typename, *statusstring;
247 typename,
owner_show(qun,answer), statusstring);
256 const char *rrp, *realowner, *
typename;
266 if (qun->
pqfr.show_cname && answer->
cname) {
276 if (qun->
pqfr.show_owner) {
285 rrn++, rrp += answer->
rrsz) {
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strchr(const char *String, int ch)
void usageerr(const char *fmt,...)
void sysfail(const char *what, int errnoval)
struct perqueryflags_remember ov_pqfr
static void prep_query(struct query_node **qun_r, int *quflags_r)
static void print_status(adns_status st, struct query_node *qun, adns_answer *answer)
static unsigned long idcounter
static void print_dnsfail(adns_status st, struct query_node *qun, adns_answer *answer)
struct outstanding_list outstanding
static const char * owner_show(struct query_node *qun, adns_answer *answer)
void ensure_adns_init(void)
static void print_ttl(struct query_node *qun, adns_answer *answer)
void query_done(struct query_node *qun, adns_answer *answer)
static void print_withspace(const char *str)
static void check_status(adns_status st)
static void print_owner_ttl(struct query_node *qun, adns_answer *answer)
static void dequeue_query(struct query_node *qun)
void query_do(const char *domain)
ADNS_API const char * adns_errtypeabbrev(adns_status st)
ADNS_API int adns_submit_reverse_any(adns_state ads, const struct sockaddr *addr, const char *rzone, adns_rrtype type, adns_queryflags flags, void *context, adns_query *query_r)
ADNS_API const char * adns_strerror(adns_status st)
ADNS_API adns_status adns_rr_info(adns_rrtype type, const char **rrtname_r, const char **fmtname_r, int *len_r, const void *datap, char **data_r)
ADNS_API int adns_init(adns_state *newstate_r, adns_initflags flags, FILE *diagfile)
ADNS_API int adns_submit_reverse(adns_state ads, const struct sockaddr *addr, adns_rrtype type, adns_queryflags flags, void *context, adns_query *query_r)
ADNS_API const char * adns_errabbrev(adns_status st)
ADNS_API int adns_submit(adns_state ads, const char *owner, adns_rrtype type, adns_queryflags flags, void *context, adns_query *query_r)
ADNS_API int adns_init_strcfg(adns_state *newstate_r, adns_initflags flags, FILE *diagfile, const char *configtext)
ADNS_API void adns_cancel(adns_query query)
@ adns_qf_quoteok_anshost
#define inet_aton(ap, inp)
static adns_initflags initflags
static struct sockaddr_in sa
WCHAR * xstrsave(const WCHAR *str)
GLdouble GLdouble GLdouble r
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
#define sprintf(buf, format,...)
#define LIST_UNLINK(list, node)
#define LIST_LINK_TAIL(list, node)
union adns_answer::@4227 rrs
struct perqueryflags_remember pqfr