Bug 17532

Summary: "host" only prints A records by default
Product: Base System Reporter: Dan Nelson (old address) <dnelson>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Dan Nelson (old address) 2000-03-21 16:40:01 UTC
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
$
Comment 1 Sheldon Hearn 2000-03-22 09:54:07 UTC
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.
Comment 2 Dan Nelson (old address) 2000-03-22 15:51:08 UTC
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
Comment 3 Sheldon Hearn 2000-03-22 15:56:09 UTC
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.
Comment 4 Poul-Henning Kamp freebsd_committer freebsd_triage 2001-05-23 21:52:36 UTC
State Changed
From-To: open->closed

out-debated.