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 1761888 - glibc: domain name resolver should not search names with dots
Summary: glibc: domain name resolver should not search names with dots
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: glibc
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Florian Weimer
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-15 13:59 UTC by Petr Menšík
Modified: 2023-07-18 14:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 16:41:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 851671 0 unspecified CLOSED glibc: [RFE] Provide ability / mechanism / option to turn off the domain searches in glibc 2023-07-18 14:30:35 UTC
Sourceware 25163 0 P1 NEW Allow DNS stub resolver configuration for current search list practices 2022-10-28 13:12:03 UTC

Internal Links: 851671 1889012

Description Petr Menšík 2019-10-15 13:59:59 UTC
Description of problem:
After bind rebase to latest ESV 9.11, bug #1743572 was reported. bind-utils changed behavior and no longer tries search suffixes to names containing dot.

That change was intentional and upstream does not want to revert back to original behaviour. Instead, they provided me link to research document [1], which recommends avoiding searches on names, when it is unclear it is considered absolute or not. Modern systems release follow recommendation by ICANN.

I think we should consider changing behaviour in glibc, even it may break backward compatibility. Now, we are in inconsistent state, where system resolver behaves different way than DNS tools. According to [1], recent Windows system behaves the same way as bind-utils. I think we should follow, maybe with flag for backward compatibility in options

Version-Release number of selected component (if applicable):
glibc-2.28-72.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1. use some search in /etc/resolv.conf
2. dig +showsearch nx.test
3. getent hosts nx.test

Actual results:
2. does not use search
3. uses search

Expected results:
2. does not use search
3. does not use search

Additional info:

It is considered best practice to use search only on unqualified names (without dots). Lowers number of invalid queries to root servers and lowers chance someone on public internet could spoof internal only site.

1. https://www.icann.org/en/groups/ssac/documents/sac-064-en.pdf

Comment 2 Florian Weimer 2019-10-29 15:33:12 UTC
I looked at this quite some time ago and the conclusion back then was that there is no reliable way to turn of search list processing for dotted names, or not have a search path at all (while still blocking TLD lookups). This needs some upstream work to get fixed.

Comment 3 Carlos O'Donell 2019-10-29 16:12:02 UTC
(In reply to Florian Weimer from comment #2)
> I looked at this quite some time ago and the conclusion back then was that
> there is no reliable way to turn of search list processing for dotted names,
> or not have a search path at all (while still blocking TLD lookups). This
> needs some upstream work to get fixed.

Could you please file an upstream bug? Then we'll close this CLOSED/UPSTREAM and track.


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