STIGUI
V-272416CAT II — Medium severitySV-272416r1156959_rule

The host running a BIND 9.x implementation must implement a set of firewall rules that restrict traffic on the DNS interface.

Rule version BIND-9X-001630 · STIG v3 · 2026-08-24

Discussion

Configuring hosts that run a BIND 9.x implementation to only accept DNS traffic on a DNS interface allows a system firewall to be configured to limit the allowed incoming ports/protocols to 53/tcp and 53/udp. Sending outgoing DNS messages from a random port minimizes the risk of an attacker guessing the outgoing message port and sending forged replies.

The TCP/IP stack in DNS hosts (stub resolver, caching/resolving/recursive name server, authoritative name server, etc.) could be subjected to packet flooding attacks (such as SYNC and smurf), resulting in disruption of communication. By implementing a specific set of firewall rules that limit accepted traffic to the interface, these risk of packet flooding and other TCP/IP based attacks is reduced.

Check

With the assistance of the DNS administrator, verify that the OS firewall is configured to only allow incoming messages on ports 53/tcp and 53/udp.

Note: The following rules are for the IPTables firewall. If the system is using a different firewall, the rules may be different.

Inspect the hosts firewall rules for the following rules:

-A INPUT -i [DNS Interface] -p tcp --dport 53 -j ACCEPT -A INPUT -i [DNS Interface] -p udp --dport 53 -j ACCEPT -A INPUT -i [DNS Interface] -j DROP

If any of the above rules do not exist, this is a finding.

If rules are listed that allow traffic on ports other than 53/tcp and 53/udp, this is a finding.

Fix

Configure the OS firewall to only allow incoming DNS traffic on ports 53/tcp and 53/udp.

Add the following rules to the host firewall rule set:

# iptables -A INPUT -i [DNS Interface] -p tcp --dport 53 -j ACCEPT
# iptables -A INPUT -i [DNS Interface] -p udp --dport 53 -j ACCEPT
# iptables -A INPUT -i [DNS Interface] -j DROP

Note: If the system is not using an IPTables firewall, the appropriate firewall rules that limit traffic to ports 53/tcp and 53/udp must be configured on the active firewall.

Identifiers

Group ID
V-272416
Group title
SRG-APP-000516-DNS-000109
Rule ID
SV-272416r1156959_rule
Check ID
C-76466r1123999_chk
Fix ID
F-76373r1123928_fix