πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Hostnames sometimes resolve and sometimes fail, affecting package installs and app dependencies.

Environment & Reproduction

Run `resolvectl status`, `dig`, and `nmcli connection show` for DNS assignment details.

Root Cause Analysis

Verify resolver-related packages and NSS components are installed correctly.

Quick Triage

Check `systemctl status NetworkManager` and any local caching resolver service.

Step-by-Step Diagnosis

Review `journalctl -b -u NetworkManager` for DHCP DNS churn and resolver updates.

Illustrative mockup for rhel-9 β€” rhel9-b01-p15-resolv-status.webp
Checking resolver configuration and upstream DNS servers β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Set static DNS via `nmcli connection modify` and reconnect profile to apply.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for rhel-9 β€” rhel9-b01-p15-nmcli-dns-fix.webp
Applying persistent DNS settings through NetworkManager β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Confirm outbound UDP/TCP 53 is not blocked by `firewalld` or upstream ACLs.

Verification & Acceptance Criteria

SELinux generally allows resolver operations; audit only if custom local DNS service is denied.

Rollback Plan

Reboot and validate stable resolution with repeated `dig` tests.

Prevention & Hardening

Avoid conflicting DNS settings from multiple network profiles.

Restore previous connection profile from backup if static settings break failover.

Related tutorial: View the step-by-step tutorial for rhel-9.

View all rhel-9 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Use NetworkManager and resolver documentation for enterprise DNS design.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β€” we respond within one business day.