Bug 2179916
| Summary: | [RFE] Support static DNS search with dynamic DNS nameserver | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Gris Ge <fge> |
| Component: | nmstate | Assignee: | Gris Ge <fge> |
| Status: | VERIFIED --- | QA Contact: | Mingyu Shi <mshi> |
| Severity: | high | Docs Contact: | Jaroslav Klech <jklech> |
| Priority: | unspecified | ||
| Version: | 9.2 | CC: | ferferna, jiji, jishi, jklech, network-qe, sfaye, till |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| 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.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 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
Gris Ge
2023-03-20 11:49:45 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. 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 |