Protecting The DNS server against DDOS
If you are managing a dns server with bind, your server might encounter such attacks. You will need to harden your DNS server (bind) using the below steps.
Check the /etc/hosts.conf and place this line, so that it prevents hostname spoofing.
Now in /etc/named.conf
Quote:
Disable recursion
Options {
...
recursion no;
...}
|
Disable upward referrals (refuse referring to root servers) In the file Prevent spoofing add
Quote:
|
additional-from-cache no;
|
Prevent spoofing
In order to prevent spoofing, consider to use-id-pool to generate random message id to make guessing harder.
Quote:
|
use-id-pool yes; (only for Bind 8.x)
|
Disable Glue fetching
Besides these, be sure to disable notifications and zone transfers in your dns server.
Restrict zone transfers and notifications
Quote:
acl “trusted” {
XX.xx.xx.xx;
YY.YY.YY.YY;
};
allow-notify { trusted; };
allow-transfer { trusted; };
|