Disable Recursive DNS in cPanel server.

Edit the /etc/named.conf file
After the “CONTROLS” section, add the following:

acl “trusted” {
127.0.0.1;
YOUR IP 1;
YOUR IP2;
};

options {
directory “/var/named”;
version “not currently available”;
allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };
dump-file “data/cache_dump.db”;
statistics-file “data/named_stats.txt”;
memstatistics-file “data/named_mem_stats.txt”;

};

Remove the other “OPTIONS” section in your named.conf file.

You can check the named conf sysntax using the following command.

# named-checkconf /etc/named.conf

Then

#rndc reload

#/etc/init.d/named restart

Leave a Reply

Your email address will not be published. Required fields are marked *