Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2000 10:39:09 -0600 (CST)
From:      dnelson@emsphone.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/17532: "host" only prints A records by default
Message-ID:  <200003211639.KAA47430@dan.emsphone.com>

next in thread | raw e-mail | index | archive | help

>Number:         17532
>Category:       bin
>Synopsis:       "host" only prints A records by default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 21 08:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
 Dan Nelson


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003211639.KAA47430>