Red Hat Bugzilla – Bug 668025
Host and nslookup doesn't use search directive in resolv.conf
Last modified: 2013-04-30 19:48:28 EDT
Description of problem:
Host and nslookup doesn't use all the domains in search directive in resolv.conf
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a search directive in /etc/resolv.conf like this
search domain1.com domain2.com
Host xpto not found: 3(NXDOMAIN)
xpto.domain2.com has address 192.168.0.1
xpto has address 192.168.0.1
I'm not able to reproduce this issue.
This is my /etc/resolv.conf:
$ cat /etc/resolv.conf
# Generated by NetworkManager
search atkac.brq.redhat.com englab.brq.redhat.com brq.redhat.com
There is DNS record called wiki.englab.brq.redhat.com and host utility resolves it correctly:
$ host wiki
wiki.englab.brq.redhat.com is an alias for wiki.lab.eng.brq.redhat.com.
wiki.lab.eng.brq.redhat.com has address 10.34.32.209
Can you run host with "-D -d" parameters and attach output, please? Thank you in advance.
Since the report of the problem, the problem has been solved (don't know how).