How to configure iptables to block a specific DNS record type?

Solution Verified - Updated -

Issue

  • How to configure iptables firewall to block a specific DNS record type?
  • Trying to rate limit the DNS "ANY" query type using an iptables rule with the --hex-string search option, but not able to block the source.
  • How to prevent or stop DNS DDoS by flood of ANY queries

Environment

  • Red Hat Enterprise Linux
  • iptables firewall
  • DNS Server

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.