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 2179916 - [RFE] Support static DNS search with dynamic DNS nameserver
Summary: [RFE] Support static DNS search with dynamic DNS nameserver
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nmstate
Version: 9.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
Jaroslav Klech
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-20 11:49 UTC by Gris Ge
Modified: 2024-01-04 08:34 UTC (History)
8 users (show)

Fixed In Version: nmstate-2.2.10-1.el9
Doc Type: Enhancement
Doc Text:
.`nmstate` now supports mixing static DNS search along with dynamic DNS name servers The `nmstate` framework now supports both static Domain Name System (DNS) search domains and dynamic DNS name servers, which `nmstate` obtained from Dynamic Host Configuration Protocol (DHCP) or the `autoconf` mechanism. Previously, static DNS search domains could not co-exist with dynamic DNS name servers because the dynamic configurations were discarded by `nmstate`. This often led to unnecessary complexity and limitations in network setup and management. This enhancement aims to bring more flexibility in managing DNS configurations. As a result, `nmstate` attempts to find a network interface to store the DNS configuration in the following order: . The preferred interface, which currently holds the DNS configuration and is still valid for DNS . An automatic interface . An IP enabled interface Note that this enhancement does not remove the DNS name servers learned from DHCP. The following is an example YAML file to apply this feature: ---- --- dns-resolver: config: search: - example.com - example.org interfaces: - name: eth1 type: ethernet state: up ipv4: enabled: true dhcp: true ipv6: enabled: true dhcp: true autoconf: true ----
Clone Of:
Environment:
Last Closed: 2023-11-07 08:24:02 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 2310 0 None open dns: Support static DNS search with auto DNS nameserver 2023-04-14 01:25:51 UTC
Red Hat Issue Tracker NMT-463 0 None None None 2023-04-06 09:52:29 UTC
Red Hat Issue Tracker RHELPLAN-154167 0 None None None 2023-04-06 09:55:02 UTC
Red Hat Product Errata RHBA-2023:6323 0 None None None 2023-11-07 08:24:23 UTC

Description Gris Ge 2023-03-20 11:49:45 UTC
Description of problem:

Per RHEL 8 bug https://bugzilla.redhat.com/show_bug.cgi?id=2174710 , RHEL 9 should also support static DNS search with dynamic DNS name servers.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Gris Ge 2023-04-13 03:56:17 UTC
Patch posted to upstream: https://github.com/nmstate/nmstate/pull/2310


With this patch, nmstate now support static DNS search domains along with dynamic DNS nameserver learn from DHCP/autoconf.

For implementation in NM, we try this order to find a interface to store
the DNS config:
 * Desired interface which currently hold DNS config and still valid for
   DNS.
 * Auto interface, prefer desired interface.
 * IP enabled interface, prefer desired interface.

We will not use global DNS for this use case as it will suppress DNS nameserver learn from DHCP.

Comment 6 Mingyu Shi 2023-05-22 08:48:28 UTC
Verified with:
nmstate-2.2.10-3.el9.x86_64
nispor-1.2.10-1.el9.x86_64
NetworkManager-1.43.8-1.el9.x86_64
DISTRO=RHEL-9.3.0-updates-20230520.44

Comment 10 errata-xmlrpc 2023-11-07 08:24:02 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 (nmstate bug fix and enhancement update), 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/RHBA-2023:6323


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