Minor patchlet for host.c

Jim Jagielski jim at jaguNET.com
Sun Jan 23 00:24:11 UTC 2000


This patch allows 'host foobar.com' to print out, once again, the
A record _and_ the MX record, if they exist, for the domain.

--- /usr2/src/ORIG/bind-8.2.2-P5/src/bin/host/host.c	Thu Nov 11 14:39:10 1999
+++ ./src/bin/host/host.c	Sat Jan 15 13:07:56 2000
@@ -171,7 +171,7 @@
 static const char	*progname = "amnesia";
 static int		getclass = ns_c_in, verbose = 0, list = 0;
 static int		server_specified = 0;
-static int		gettype;
+static int		gettype = 0;
 static char		getdomain[NS_MAXDNAME];
 
 /* Forward. */
@@ -270,7 +270,7 @@
 			/*NOTREACHED*/
 		}
 	}
-	if (gettype == 0) {
+	if (!gettype && sigchase) {
 		if (verbose)
 			printf ("Forcing `-t a' for signature trace.\n");
 		gettype = ns_t_a;
 
-- 
===========================================================================
   Jim Jagielski   [|]   jim at jaguNET.com   [|]   http://www.jaguNET.com/
                "Are you suggesting coconuts migrate??"



More information about the bind-workers mailing list