From owner-freebsd-questions Tue Mar 21 8:23:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 73CDC37BEF8 for ; Tue, 21 Mar 2000 08:23:38 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id KAA42423; Tue, 21 Mar 2000 10:22:59 -0600 (CST) (envelope-from dan) Date: Tue, 21 Mar 2000 10:22:59 -0600 From: Dan Nelson To: Rahul Siddharthan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Problem with "host" command (doesn't return mx records) Message-ID: <20000321102259.D32257@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.5i In-Reply-To: ; from "Rahul Siddharthan" on Tue Mar 21 21:23:53 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 21), Rahul Siddharthan said: > The host command here is returning only the ip address if it > exists (if not, nothing), it doesn't return mx records. I think one of the bind updates changed the default behaviour of the "host" command. Aha. I found the problem, probably a bug: /usr/src/contrib/bind/bin/host/host.c line 273: if (gettype == 0) { if (verbose) printf ("Forcing -t a' for signature trace.\n"); gettype = ns_t_a; } So the default for "host" is now "host -t a". I would suggest changing it to read if (gettype == 0 && sigchase == 1) { , so it only forces "-t a" if you actually want signature tracing, which is undocumented anyway :) I'll file a PR on this. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message