Bug 2179916 - [RFE] Support static DNS search with dynamic DNS nameserver
Summary: [RFE] Support static DNS search with dynamic DNS nameserver
Keywords:
Status: VERIFIED
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: 2023-07-28 11:04 UTC (History)
7 users (show)

Fixed In Version: nmstate-2.2.10-1.el9
Doc Type: Enhancement
Doc Text:
Feature: Nmstate now supports static DNS search domains along with dynamic DNS nameservers learned from DHCP/autoconf. This enhancement addresses the need for more flexible DNS configurations. Reason: Prior to this update, static DNS search domains could not coexist with dynamic DNS nameservers, resulting in configurations being discarded by nmstate. This often led to unnecessary complexity and limitations in network setup and management. This enhancement was implemented to allow more flexibility in managing DNS configurations. Result: With this enhancement, nmstate attempts to find an interface to store the DNS configuration in the following order: the desired interface currently holding the DNS config and still valid for DNS, an auto interface (preferring the desired interface), and an IP enabled interface (also preferring the desired interface). Importantly, this implementation doesn't suppress DNS nameservers learned from DHCP, avoiding the loss of important network information. This feature thus allows users to maintain static DNS search domains while leveraging the flexibility of dynamic DNS nameservers.
Clone Of:
Environment:
Last Closed:
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

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


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