Recursion is a feature in DNS servers that allows them to resolve queries for domains that are not in their local cache or zone files. When a DNS server receives a query for a domain that it does not know about, it will send a recursive query to other DNS servers to try to resolve the domain.
To stop recursion in BIND, you will need to disable the recursion
option in the BIND configuration file.
Here is an example of how to disable recursion in BIND:
Connect to the BIND server using ssh
.
Open the BIND configuration file in a text editor. The configuration file is usually located at /etc/bind/named.conf
.
Locate the options
section of the configuration file. It should look something like this:
options { ... recursion yes; ... }
recursion
option to no
:options { ... recursion no; ... }
Save the configuration file and exit the text editor.
Reload the BIND server to apply the changes:
rndc reload
After reloading the BIND server, it will no longer perform recursive queries for domains that it does not know about. Keep in mind that this may impact the ability of the DNS server to resolve certain queries, so use this option with caution.