| Turning Off Recursive DNS [message #104336] |
Fri, 30 November 2012 08:59  |
|
Hi,
My server is running Kloxo 6.1.12 and it was just used to send a DNS amplification attack.
I found out that Recursive DNS seem to be On by default.
I found this topic that discuss the issue: http://forum.lxcenter.org/index.php?t=msg&goto=79302x%x
The file "global.options.named.conf" doesn't exist on my server so I runned the /script/cleanup but it didn't create it as Danny suggest.
I used 0070007 method for now:
in /var/named/chroot/etc/named.conf add
options {
recursion no;
};
Is this the right thing to do? The post I linked if from last year. Is this have been changed?
Thank you!
|
|
|
|
|
| Re: Turning Off Recursive DNS [message #104489 is a reply to message #104422] |
Thu, 06 December 2012 14:21   |
|
You'll have to edit it.
Recursive DNS lookups aren't really that serious of a security threat. After all, that's how you get DNS lookups from your ISP when you browse the Internet.
The idea is that if you allow recursive lookups that someone could try a DoS attack on your DNS server by flooding you with lookup requests. All recursive requests are null-routed if you disable recursive lookups. With recursive lookups disabled the only DNS requests that are serviced are authoritative lookups (lookup for domains that you manage zones for).
Entomy Networks, Premium Hosting Services

[Updated on: Thu, 06 December 2012 15:35] Report message to a moderator
|
|
|
|
| Re: Turning Off Recursive DNS [message #104498 is a reply to message #104497] |
Thu, 06 December 2012 19:10  |
|
This is my 'standard' bind:
acl "lxcenter" {
localhost;
};
options {
max-transfer-time-in 60;
transfer-format many-answers;
transfers-in 60;
auth-nxdomain yes;
allow-transfer {
lxcenter;
xxx.xxx.xxx.xxx;
};
allow-recursion {
lxcenter;
xxx.xxx.xxx.xxx;
};
recursion yes;
version "LxCenter-1.0";
forwarders {
xxx.xxx.xxx.xxx;
};
};
# Remove # to see all DNS queries
# logging {
# channel query_logging {
# file "/var/log/named_query.log";
# versions 3 size 100M;
# print-time yes;
# };
# category queries {
# query_logging;
# };
# };
where: xxx.xxx.xxx.xxx = ns2
[Updated on: Thu, 06 December 2012 19:11] Report message to a moderator
|
|
|