Affected versions: RHEL 7

📖 ~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

Host resolves external names inconsistently and internal service discovery fails due to blocked DNS traffic.

Environment & Reproduction

With firewalld enabled, run dig to internal resolver and observe timeout while direct ping to resolver IP works.

Root Cause Analysis

Active zone lacks dns service allowance or custom rich rules drop UDP/TCP 53 from expected source ranges.

Quick Triage

Check firewall-cmd –get-active-zones and compare interface assignment against intended zone policy.

Step-by-Step Diagnosis

List permanent and runtime rules, verify zone target, and inspect journalctl for dropped packet logs.

Illustrative mockup for rhel-7 — firewalld_zone_query
Inspecting active zones and DNS-related rules — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Add dns service or explicit 53/tcp and 53/udp rules to correct zone, reload firewalld, and persist config.

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-7 — firewalld_add_dns_service
Adding DNS service allowance in firewalld — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Create dedicated internal zone for resolver traffic or migrate complex ACL logic to managed policy templates.

Verification & Acceptance Criteria

dig and yum repository lookups complete quickly and repeated queries show stable resolver performance.

Rollback Plan

Remove newly added rules and restore previous zone XML from backup if unexpected exposure occurs.

Prevention & Hardening

Audit firewalld rules after interface changes and enforce policy-as-code review for network security updates.

Common companions are yum mirror failures, LDAP lookup delays, and hostname resolution issues.

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

View all rhel-7 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Use RHEL 7 firewalld administration references for zone design and service rule best practices.

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.