RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1700916 - dnsmasq does not reply to non-recursive queries with local data
Summary: dnsmasq does not reply to non-recursive queries with local data
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnsmasq
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Petr Menšík
QA Contact: Petr Dancak
Katerina Nemcova
URL:
Whiteboard:
Depends On:
Blocks: 1743192 1755139
TreeView+ depends on / blocked
 
Reported: 2019-04-17 16:05 UTC by Petr Menšík
Modified: 2023-09-07 19:56 UTC (History)
4 users (show)

Fixed In Version: dnsmasq-2.79-9.el8
Doc Type: Bug Fix
Doc Text:
.`dnsmasq` now correctly handles the non-recursive DNS queries Previously, `dnsmasq` forwarded all the non-recursive queries to an upstream server, which led to different responses. With this update, the non-recursive queries to local known names, such as DHCP host lease names or hosts read from the `/etc/hosts` file, are handled by `dnsmasq` and are not forwarded to an upstream server. As a result, the same response as to recursive queries to known names is returned.
Clone Of:
Environment:
Last Closed: 2020-04-28 16:02:29 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-26655 0 None None None 2023-05-13 09:06:54 UTC
Red Hat Product Errata RHSA-2020:1715 0 None None None 2020-04-28 16:02:58 UTC

Description Petr Menšík 2019-04-17 16:05:15 UTC
Description of problem:
When checking Fedora bug #1647464, I discovered recent dnsmasq does not reply correctly to DNS queries without recursion desired bit set.

Version-Release number of selected component (if applicable):
dnsmasq-2.79-4.el8+7.x86_64

How reproducible:
always

Steps to Reproduce:
1. systemctl restart dnsmasq
2. dig @localhost +norec localhost4.localdomain4
3.

Actual results:
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el8 <<>> @localhost +norec localhost4.localdomain4
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 33715
;; flags: qr ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;localhost4.localdomain4.	IN	A

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Apr 17 17:49:28 CEST 2019
;; MSG SIZE  rcvd: 41


Expected results:
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el8 <<>> @localhost localhost4.localdomain4
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6018
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;localhost4.localdomain4.	IN	A

;; ANSWER SECTION:
localhost4.localdomain4. 0	IN	A	127.0.0.1

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Apr 17 17:49:21 CEST 2019
;; MSG SIZE  rcvd: 68


Additional info:
This issue is not present in 2.76 version in RHEL7, so it makes regression after upgrade. It can break especially setups from other recursive resolvers querying dnsmasq, because they do that always without recursion. Current dnsmasq forwards all non-recursive queries to upstream server, even when it serves correct answer with rd bit set.

Comment 19 errata-xmlrpc 2020-04-28 16:02:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1715


Note You need to log in before you can comment on or make changes to this bug.