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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content