Bug 1757724

Summary: Latest bind-utils lookup tools don't append the search domain for wildcard entries [regression]
Product: Red Hat Enterprise Linux 7 Reporter: Christophe Besson <cbesson>
Component: bindAssignee: Petr Menšík <pemensik>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: high    
Version: 7.7Keywords: Regression, Reproducer
Target Milestone: rc   
Target Release: 7.7   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-02 11:26:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christophe Besson 2019-10-02 09:43:21 UTC
Description of problem:
After an upgrade to RHEL 7.7, lookup tools behavior has changed, the search domain from resolv.conf isn't appended when resolving a wildcard entry (whereas ping does). It seems to be a regression since that works with the previous tools coming with RHEL 7.6 (bind-utils-9.9.4-74.el7_6.2.x86_64). Please note that building and using the previous version on RHEL 7.7 works as expected (downgrade won't work due to deps).

Version-Release number of selected component (if applicable):
bind-utils-9.11.4-9.P2.el7.x86_64

How reproducible:
* Setup a named server with a "bar" domain:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# dig bar axfr

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> bar axfr
;; global options: +cmd
bar.			3600	IN	SOA	master.bar. root.master.bar. 2019100201 28800 1200 604800 3600
bar.			3600	IN	NS	master.bar.
foo.bar.		3600	IN	A	10.0.0.2
master.bar.		3600	IN	A	10.0.0.1
wildcard.bar.		3600	IN	A	10.10.10.10
*.wildcard.bar.		3600	IN	A	10.10.10.10
bar.			3600	IN	SOA	master.bar. root.master.bar. 2019100201 28800 1200 604800 3600
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 02 05:36:03 EDT 2019
;; XFR size: 7 records (messages 1, bytes 236)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Configure your local resolver with:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search bar
nameserver 127.0.0.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Actual results:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# host foo
foo.bar has address 10.0.0.2

# host wildcard
wildcard.bar has address 10.10.10.10

# host foo.wildcard
Host foo.wildcard not found: 3(NXDOMAIN)

# host foo.wildcard.bar
foo.wildcard.bar has address 10.10.10.10

# ping foo.wildcard
PING foo.wildcard.bar (10.10.10.10) 56(84) bytes of data.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expected results:
Like it was on RHEL 7.6 with the previous version of bind-utils.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# host foo.wildcard
foo.wildcard.bar has address 10.10.10.10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additional info:

Comment 3 Christophe Besson 2019-10-02 10:00:33 UTC
Same as #1743572
I didn't see it before filing this bug.

Comment 4 Petr Menšík 2019-10-02 11:26:19 UTC
Yes, this is duplicate. Broken by 7.7 rebase.

*** This bug has been marked as a duplicate of bug 1743572 ***