host command fails to resolve short host names without using search list in resolv.conf
Issue
host
command fails to resolve short host names without using search list.
For example:
$ cat /etc/resolv.conf
search example.com
nameserver 192.0.2.1
$ host node1.redhat.global
Host node1.redhat.global not found: 3(NXDOMAIN)
$ host node1.redhat.global.example.com
node1.redhat.global.example.com has address 192.0.2.10
Environment
Red Hat Enterprise Linux 7 and bind-utils older than bind-utils-9.11.4-16.P2 installed
Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.