Rule ID
SV-275938r1156959_rule
Version
V3R2
CCIs
CCI-000366
DNS cookies can help prevent spoofing and cache poisoning attacks by verifying the identity of both the client and server. They do this by including a cryptographic identifier (the cookie) in DNS messages, which can be verified in future messages. This makes it difficult for an attacker to learn the cookie values and thus spoof them.
Verify answer-cookie is enabled.
Inspect the named.conf file for the following:
options {
answer-cookie yes;
If answer-cookie is missing or set to "no", this is a finding.Edit the named.conf file:
options {
answer-cookie yes;
};
After making changes, save the named.conf file and restart the BIND service to apply the changes.