Description of problem: When calling "host" with a relative hostname (no dot) it tries to look it up with domains according to /etc/resolv.conf but without adding the dot between the name and domain. Version-Release number of selected component (if applicable): bind-utils-9.5.0-20.b1.fc8 How reproducible: Look up an IP for a hostname. Steps to Reproduce: 1. host computer Actual results: Host computer not found: 3(NXDOMAIN) Expected results: computer.search.domain.com has address 10.11.12.13 Additional info: host -a gives: Trying "computersearch.domain.com" Trying "computerdomain.com" Trying "computer" Host computer not found: 3(NXDOMAIN) /etc/resolv.conf contains search search.domain.com domain.com
Me too
This is odd. The behavior of the host command seems to be the opposite of how the man page describes it. When I query a host in my (only) search domain with a dot, the host command smashes the host and domain together and reports (correctly) the host doesn't exist. If I query with a single dot at the end of the hostname without domain, it is supposed to treat the input as an absolute hostname, which should not work, but for this broken version of host it does. This doesn't work but should: host hrlx01 Host hrlx01 not found: 3(NXDOMAIN) This works but shouldn't: host hrlx01. hrlx01.cosmic.utah.edu has address 155.101.22.101 my resolv.conf: search cosmic.utah.edu nameserver 155.101.22.167 nameserver 155.101.22.168 nameserver 155.101.3.10
*** This bug has been marked as a duplicate of 426348 ***