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:
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