From dan@dan.emsphone.com  Tue Mar 21 08:39:14 2000
Return-Path: <dan@dan.emsphone.com>
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
	by hub.freebsd.org (Postfix) with ESMTP id 13D0D37BCFC
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Mar 2000 08:39:13 -0800 (PST)
	(envelope-from dan@dan.emsphone.com)
Received: (from dan@localhost)
	by dan.emsphone.com (8.9.3/8.9.3) id KAA47430;
	Tue, 21 Mar 2000 10:39:09 -0600 (CST)
	(envelope-from dan)
Message-Id: <200003211639.KAA47430@dan.emsphone.com>
Date: Tue, 21 Mar 2000 10:39:09 -0600 (CST)
From: dnelson@emsphone.com
Sender: dan@dan.emsphone.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: "host" only prints A records by default
X-Send-Pr-Version: 3.2

>Number:         17532
>Category:       bin
>Synopsis:       "host" only prints A records by default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 21 08:40:01 PST 2000
>Closed-Date:    Wed May 23 13:52:36 PDT 2001
>Last-Modified:  Wed May 23 13:52:50 PDT 2001
>Originator:     Dan Nelson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Executive Marketing Services
>Environment:

FreeBSD dan.emsphone.com 5.0-CURRENT FreeBSD 5.0-CURRENT #52: Mon Mar 20 10:01:54 CST 2000     dan@dan.emsphone.com:/usr/src/sys/compile/DANSMP  i386

>Description:

One of the BIND updates changed the default behaviour of the "host"
command.  It used to print both A and MX records for the address
queried, but now it only prints the A record.  You have to run "host -t
mx" to get MX info.  The manpage still says the old behaviour is the
default.

>How-To-Repeat:

$ host emsphone.com
emsphone.com has address 199.67.51.100
$ host.old emsphone.com
emsphone.com has address 199.67.51.100
emsphone.com mail is handled (pri=10) by dan.emsphone.com
emsphone.com mail is handled (pri=0) by gatekeeper.emsphone.com
$

>Fix:

Index: host.c
===================================================================
RCS file: /home/ncvs/src/contrib/bind/bin/host/host.c,v
retrieving revision 1.1.1.2
diff -b -u -r1.1.1.2 host.c
--- host.c	1999/11/30 02:42:03	1.1.1.2
+++ host.c	2000/03/21 16:13:08
@@ -270,7 +270,7 @@
 			/*NOTREACHED*/
 		}
 	}
-	if (gettype == 0) {
+	if (gettype == 0 && sigchase == 1) {
 		if (verbose)
 			printf ("Forcing `-t a' for signature trace.\n");
 		gettype = ns_t_a;



>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: dnelson@emsphone.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/17532: "host" only prints A records by default 
Date: Wed, 22 Mar 2000 11:54:07 +0200

 On Tue, 21 Mar 2000 10:39:09 CST, dnelson@emsphone.com wrote:
 
 > One of the BIND updates changed the default behaviour of the "host"
 > command.  It used to print both A and MX records for the address
 > queried, but now it only prints the A record.  You have to run "host -t
 > mx" to get MX info.  The manpage still says the old behaviour is the
 > default.
 
 Wouldn't it be better to update the manula page to describe the new
 behaviour?  This would keep host on FreeBSD consistent with host on
 other platforms running the same version of BIND.
 
 Ciao,
 Sheldon.
 

From: Dan Nelson <dnelson@emsphone.com>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/17532: "host" only prints A records by default
Date: Wed, 22 Mar 2000 09:51:08 -0600

 In the last episode (Mar 22), Sheldon Hearn said:
 > On Tue, 21 Mar 2000 10:39:09 CST, dnelson@emsphone.com wrote:
 > 
 > > One of the BIND updates changed the default behaviour of the "host"
 > > command.  It used to print both A and MX records for the address
 > > queried, but now it only prints the A record.  You have to run
 > > "host -t mx" to get MX info.  The manpage still says the old
 > > behaviour is the default.
 > 
 > Wouldn't it be better to update the manual page to describe the new
 > behaviour?  This would keep host on FreeBSD consistent with host on
 > other platforms running the same version of BIND.
 
 But I'd rather see the old behaviour :)  It annoys me on other
 platforms with Bind 8, but this one I can at least change. 
 
 -- 
 	Dan Nelson
 	dnelson@emsphone.com
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Dan Nelson <dnelson@emsphone.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/17532: "host" only prints A records by default 
Date: Wed, 22 Mar 2000 17:56:09 +0200

 On Wed, 22 Mar 2000 09:51:08 CST, Dan Nelson wrote:
 
 > But I'd rather see the old behaviour :)  It annoys me on other
 > platforms with Bind 8, but this one I can at least change. 
 
 While you may find it annoying,  I think it's better to keep our BIND as
 consistent as possible with the distribution than it is to make its
 behaviour less annoying.
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed May 23 13:52:36 PDT 2001 
State-Changed-Why:  
out-debated. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17532 
>Unformatted:
 Dan Nelson
