CK Web Logs

Internet & Technology

BIND: Stop Recursion DNS

A DNS query may be either a recursive query or a non-recursive query. If recursion is set to ‘yes’ (the default) the server will always provide recursive query behaviour if requested by the resolver (client). If set to ‘no’ the server will only provide iterative query behaviour. If the answer to the query already exists in the cache it will be returned irrespective of the value of this statement. This statement essentially controls caching behaviour in the server.

Open /etc/named.conf file than make sure following settings exists under options { .. } settings:

recursion no;

Save and close the file, restart named:

$ service named restart

Source: cyberciti.biz

Categories: Linux