When using the 'host' command with a not fully qualified name of a host outside the own domain, its ip will not be printed (see example below) This is a bad behavior because the manpage of host(1) says: ------------ DESCRIPTION ... By default, it simply converts between host names and Internet addresses. ... ------------ The error will be caused by the 2nd hunk of the `bind-8.8.2p5-hostmx.patch' patchfile in the src.rpm. Example: ------------- $ host mailbox $ host -ta mailbox mailbox.hrz.tu-chemnitz.de has address 134.109.132.125 $ host mailbox.hrz.tu-chemnitz.de mailbox.hrz.tu-chemnitz.de has address 134.109.132.125 $ cat /etc/resolv.conf domain ultra.csn.tu-chemnitz.de search ultra.csn.tu-chemnitz.de csn.tu-chemnitz.de tu-chemnitz.de hrz.tu-chemnitz.de informatik.tu-chemnitz.de nameserver 192.168.5.1 $ --------------
This bug is the opposite of #9021, so the error seems to lie deeply in bind...
Can't reproduce it... [bero@bero bero]$ host ftp ftp.redhat.de is a nichname for ns.redhat.de ns.redhat.de has address 193.103.254.150 ns.redhat.de has address 193.103.254.150 [bero@bero bero]$ host www www.redhat.de has address 193.103.254.129 www.redhat.de mail is handled (pri=100) by mail.de.uu.net www.redhat.de mail is handled (pri=5) by mail.redhat.de www.redhat.de mail is handled (pri=10) by mail.redhat.com [bero@bero bero]$ rpm -q bind-utils bind-utils-8.2.2_P5-24
I have verified the described behavior again on another machine: Try to add `redhat.com' into the `search' list of /etc/resolv.conf (but *not* as the first entry). $ host beta beta.redhat.com is a nickname for gribble.redhat.com gribble.redhat.com mail is handled (pri=10) by mail.redhat.com gribble.redhat.com mail is handled (pri=10) by mail.redhat.com $ host -ta beta beta.redhat.com is a nickname for gribble.redhat.com gribble.redhat.com has address 199.183.24.203 gribble.redhat.com has address 199.183.24.203 When adding `redhat.com' as first entry into the searchlist, I get the correct answer: $ host beta beta.redhat.com is a nickname for gribble.redhat.com gribble.redhat.com has address 199.183.24.203 gribble.redhat.com has address 199.183.24.203 $
I can reproduce it when the domain is not the first one listed in search... Looking into it.
Fixed in bind-9.0.0-1