Does firewalld support fqdn hostnames?

Solution Verified - Updated -


Customer would like to use FQDN instead of IPs in firewalld configuration, but when firewalld is reloaded with:

# firewalld-cmd --reload

Some rules are not applied if a hostname has to be resolved to IP (and the entry is not in /etc/hosts or nscd cache) or firewalld cannot contact dns. In such cases the rule is skipped.

Note: firewalld report "success" but some 'iptables WARNING' will appear in /var/log/messages


RHEL 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In