Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-57741

Adapt NetworkManager fix for hostname resolution in RHEL 8 without NSS runtime configuration change

    • rhel-sst-network-management
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Given a system running RHEL 8 with static IP addresses and hostname mapping in /etc/hosts,

      When NetworkManager attempts to resolve the hostname during the system's IP address configuration,

      Then, NetworkManager should first query the "dns" backend to resolve the hostname. If this query fails, NetworkManager should spawn the helper again, querying the "files" backend to resolve the hostname via /etc/hosts.

      The correct hostname should be set as per the entry in /etc/hosts or from DNS if available.

      Show
      Given a system running RHEL 8 with static IP addresses and hostname mapping in /etc/hosts, When NetworkManager attempts to resolve the hostname during the system's IP address configuration, Then, NetworkManager should first query the "dns" backend to resolve the hostname. If this query fails, NetworkManager should spawn the helper again, querying the "files" backend to resolve the hostname via /etc/hosts. The correct hostname should be set as per the entry in /etc/hosts or from DNS if available.
    • None
    • None
    • None

      Due to limitations in RHEL 8, the original fix for hostname resolution that depended on changing NSS configuration at runtime cannot be applied. To resolve this issue, NetworkManager should be updated to spawn the hostname resolution helper twice: once with "dns" backend and once with "files" backend. This will make sure  hostname resolution works consistently across different environments without relying on unavailable NSS runtime configuration changes in RHEL 8.

       

              rh-ee-sfaye Stanislas Faye
              rh-ee-sfaye Stanislas Faye
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: