Bug 22688 - /usr/bin/host is not reading entire search path
Summary: /usr/bin/host is not reading entire search path
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bind   
(Show other bugs)
Version: 6.2
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Need Real Name
Depends On:
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:
Story Points: ---
Clone Of:
Last Closed: 2000-12-21 20:52:03 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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
$ host www
www.icq.com has address
www.icq.com has address
www.icq.com has address
$ host lotus
$ host lotus

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

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               localhost.localdomain localhost

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

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

--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.