- unbound-host has a -d option to show what happens. This can help
with debugging (why do I get this answer).
- fixup CNAME handling, on nodata, sets and display canonname.
+ - dot removed from CNAME display.
+ - respect -v for NXDOMAINs.
6 December 2007: Wouter
- library resolution works in foreground mode, unbound-host app
usage()
{
printf("Usage: unbound-host [-vdh] [-c class] [-t type] hostname\n");
- printf(" [-y key] [-f keyfile] [-F named.conf]\n");
+ printf(" [-y key] [-f keyfile] [-F namedkeyfile]\n");
printf(" Queries the DNS for information.\n");
printf(" The hostname is looked up for IP4, IP6 and mail.\n");
printf(" If an ip-address is given a reverse lookup is done.\n");
pretty_rcode(rcodestr, 16, result->rcode);
if(!haved && result->rcode) {
- printf("Host %s not found: %d(%s). %s\n",
- q, result->rcode, rcodestr, secstatus);
+ printf("Host %s not found: %d(%s).",
+ q, result->rcode, rcodestr);
+ if(verb > 0)
+ printf(" %s", secstatus);
+ printf("\n");
return;
}
if(docname && result->canonname &&
printf(" %s", secstatus);
printf("\n");
}
+ /* remove trailing . from long canonnames for nicer output */
+ if(result->canonname && strlen(result->canonname) > 1)
+ result->canonname[strlen(result->canonname)-1] = 0;
if(!haved) {
if(verb > 0) {
printf("%s", result->canonname?result->canonname:q);