Query (cache) denied

This is all from recursive queries. To be sure this is from recursive queries do next - open your named.conf and insert “allow-recursion { any; };” so it should look something like this:

options {

—a lot of stuff—

allow-recursion { any; };
};
After that restart named and see if you stop getting those messages. If the answer is yes then delete the line with “allow-recursion { any; };” and add in named.conf (in case you already have some of the lines there change it as i posted here):

acl “trusted” {
localhost;
localnets;
};

options {

—a lot of stuff—

version "unknown";
allow-transfer { trusted; };
allow-recursion { trusted; };
allow-query-cache { trusted; };
recursion no;
additional-from-cache no;
allow-query { any; };

};

In case this solution doesnt work DO NOT! leave “allow-recursion { any; }” in your named.conf or the damage could be great and your server can be used to amplify DDoS attacks. But dont worry to have it for a short time until you check your logs it should be fine.

Of course once you implement the changes keep an eye to your logs to see if there will be any problems. Dont forget for the changes to take effect you must restart named each time you make some changes.

PLEASE BEFORE ANYTHING SAVE YOUR NAMED.CONF ON YOUR LOCAL PC!!!