Bug 152281 - Resolving using in-addr.arpa doesn't work at host
Summary: Resolving using in-addr.arpa doesn't work at host
Alias: None
Product: Fedora
Classification: Fedora
Component: bind   
(Show other bugs)
Version: rawhide
Hardware: All Linux
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2005-03-27 10:38 UTC by Robert Scheck
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-28 14:24:32 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 Robert Scheck 2005-03-27 10:38:51 UTC
Description of problem:
Resolving using in-addr.arpa doesn't work at host:

> host www.redhat.com
www.redhat.com has address

> host domain name pointer www.redhat.com.

> host

This also applies to ip6.arpa and ip6.int.

Version-Release number of selected component (if applicable):

How reproducible:
Everytime, see above. Even reproducible, if bind is rebuilt against -16 or -18. 
Older Rawhide glibcs, I didn't check.

Actual results:
Resolving using in-addr.arpa doesn't work at host.

Expected results:
> host domain name pointer www.redhat.com.

Additional info:
I'm not sure, maybe this problem should be re-assigned to glibc.

Comment 1 Jason Vas Dias 2005-03-28 14:24:32 UTC
The host command is perhaps not doing what you expect - the command:
$ host

Will be looking up an "A" (address) record for, and
will also be using the search path in /etc/resolv.conf, so if your resolv.conf
contains the line:
  'search my.domain.com'
host will be generating the queries A ? A ?

Giving host the IP address instead of the in-addr.arpa name makes it perform 
a PTR query for the in-addr.arpa name for the address, which is probably what
you want:
   $ host domain name pointer www.redhat.com.

You could also use the -t option:
    $ host -t PTR domain name pointer www.redhat.com.

    $ dig
Or: $ dig -x


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