TMAegis
More rules for bind

BIND DNS

TMA-BIND-1.3

Dedicated Name Server Role

MediumLevel 1Manual reviewbind

Description

A name server may be an authoritative name server for one or more domains for which it is configured to provide information. An authoritative-only name server only answers queries on the domains for which it is configured, and will reject queries for other domains. A caching name server will answer queries any domain. Manual review: the check needs remote queries, architecture knowledge or site policy.

How it is checked

Audit method: Manual review

This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.

Authoritative-Only Name Server: To audit an authoritative name server, ensure it doesn't answer queries for other non- authoritative domain names. The following command may be run on a Linux system other than the name server to verify the query status is refused. $ dig @<ip_address_of_nameserver> <non_authoritative_name> | grep status; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 52410 Alternatively, the BIND configuration file name.conf and all included configuration files may be searched for the allow-recursion statement.

How it is fixed

Fix method: Guidance or infrastructure patch

Authoritative-Only Name Server: For the authoritative-only name server add or modify the allow-recursion statement to only include the localhost to as shown below, or add a recursion statement with a value of no as shown below. options { . . . allow-rescursion { local; }; or recursion no; Caching-Only Name Server: For the caching-only name server remove the non-local zone statements from the configuration file and restart the server.

Properties

Operating systems
Any
Tags
binddnsarchitecture
Reference
CIS ISC BIND DNS Server 9.11 Benchmark v1.0.0 - 1.3 Dedicated Name Server Role