Bug 22688 - /usr/bin/host is not reading entire search path
Summary: /usr/bin/host is not reading entire search path
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bind
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Need Real Name
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-12-21 19:58 UTC by reedte
Modified: 2007-04-18 16:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-12-21 20:52:03 UTC
Embargoed:


Attachments (Terms of Use)

Description reedte 2000-12-21 19:58:07 UTC
I am having a problem with /usr/bin/host from the package
bind-utils-8.2.2_P7-0.6.2.  It does not appear to read any domain from the
search path in resolv.conf after the first one listed.
For example:

$ cat /etc/resolv.conf
search icq.com aol.com
nameserver 207.69.188.185
$ host www
www.icq.com has address 205.188.147.56
www.icq.com has address 205.188.147.53
www.icq.com has address 205.188.252.121
$ host lotus
$ host lotus
$

At this point I change my resolv.conf to the following
$ cat /etc/resolv.conf
search aol.com icq.com
nameserver 207.69.188.185
$ host lotus
lotus.aol.com has address 205.188.147.121

And since there is www.aol.com host www is not relevent.  The point I
wanted to make was that when aol.com came after icq.com, the host command
returned nothing.  When I move aol up to the first item, host returns the
correct answer.  I did some more testing on this with my local lan (due to
supervisor's concern, I could not publish those results) and they confirmed
this.  In trying to duplicate this on other distro's someone mentioned to
me that it might be host.conf.  I have researched host.conf and gone to 6.0
distrubution that was working correctly and my host.confs are indentical.

$ cat /etc/host.conf
order hosts,bind
multi on

I also checked the nsswitch.conf. 

$ cat /etc/nsswitch.conf|grep hosts
hosts:      files nisplus nis dns

And finally here is my hosts file:
$ cat /etc/hosts
127.0.0.1               localhost.localdomain localhost

Now if it makes any difference, nslookup does not appear to have this
problem.  

I have searched long and hard for any other reference to this problem and
can't find any thing anywhere.  Please forgive me if this is a known
problem and there is a simple answer our there, or if I am just plain
blind.  

Thanks!!
--Toby Reed

Comment 1 Bernhard Rosenkraenzer 2001-02-20 18:06:21 UTC
Fixed in the current version


Note You need to log in before you can comment on or make changes to this bug.