While doing some routine checks at dnsreport for my domain I realized that it was reporting my nameservers, which are on my main machine (I plan on using one from theplanet as secondary soon) as Open and thus failing the Open DNS Server test.
It suggested a fix for bind:
"Open named.conf with a text editor
Use a line "recursion no;" in the "options" clause (or in the "view" clause)
If you need to enable recursion for your local network, you can use a "allow-recursion { ADD_LIST_OF_YOUR_IP_RANGES_HERE; }" line in the "options" section. "
I also found this thread in the Ensim forum: http://forums.theplanet.com/index.php?showtopic=85643 where it said that I should edit a file in /etc/bind/ .
However - the folder /bind/ does not exist on my server. I use CPanel, not ensim. Is that the reason? Should I edit the named.conf file with the same lines like was mentioned in the other thread (xxx being the two ip's to my nameservers):
options {
directory "/var/named";
version "DNS";
allow-recursion { 127.0.0.1; xxx.xxx.xxx.xxx; xxx.xxx.xxx.xxx; };
listen-on { 127.0.0.1; xxx.xxx.xxx.xxx; xxx.xxx.xxx.xxx; };
}
or should I only use
options {
recursion no;
allow-recursion { 127.0.0.1; xxx.xxx.xxx.xxx; xxx.xxx.xxx.xxx; };
}
I don't want to break anything so I just wanted to check with you guys.
Thanks in advance.
/Björn
