I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5779
46271 credits Members referred : 3
« on: Jun 24, 2007, 01:52:04 pm »
This post is regarding a low risk vulnerability in DNS servers called open DNS server. When a DNS server is open, means that it will serve DNS lookups for domains that do not exist in its own files. So for instance if your DNS server is open, it will give you a response for google.com and any other site that is not hosted in your box.
This is not actually a vulnerability, but when your DNS server is open, it can degrade performance of your DNS, and can cause your DNS servers to be used in an DOS attack.
So in order to close that you need to add this directive in your named.conf file in the options clause :
Code:
recursion no;
But wait a minute. This can cause a bigger problem. With no recursion your server wont be able to get DNS resolves so it wont be able to fetch data from the internet. So I guess this directive wont work well for most of the servers.
If that could be a problem to you, you can use this directive (instead of "recursion no") which will allow recursion to any ip range you want to.
Code:
allow-recursion {127.0.0.1; 192.168.0.1; };
Be sure to add a semicolon ( after each ip because BIND is very hard with directives and it wont work on any error
Hope you liked this small tutorial
« Last Edit: Jun 24, 2007, 01:53:39 pm by Nikolas »
WebDigity Gangsta
Posts: 105
564 credits Members referred : 0
« Reply #1 on: Jul 01, 2007, 02:00:18 pm »
Nice article. I don't really understand why recursion no; isn't the standard option and you have to activate it if you really want your DNS to be open.
/Andreas
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #2 on: Jul 01, 2007, 09:34:53 pm »
is it possible to test if my server has some open DNS?
WebDigity Gangsta
Posts: 105
564 credits Members referred : 0
« Reply #3 on: Jul 01, 2007, 09:55:42 pm »
At dnsstuff.com I got a warning about that for one of my NS, but that was before they started charging for access to their tools You only get 10 tries after that you have to be a member.
/Andreas
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #4 on: Jul 01, 2007, 09:59:59 pm »
yes right (that suxxx). I used that test always until they changed that
I guess there is some Linux command but which one?
Andreas, if you use recursion no, then the server wont be able to get dns records and download things from internet. For instance remote file_get_contents() and Curl will stop working.