recursive DNS servers DDoS as a growing DDoS problem

Hi guys.

We discussed recursive DNS servers before (servers which allow to query anything - including what they are not authoritative for, through them).

The attack currently in the wild is a lot bigger and more complicated than this, but to begin, here is an explanation (by metaphor) of that part:
Spoofed ICMP attacks have been around for a while. How many of us still get quite a bit of ICMP echo replies stopped at our borders? These replies come to us due to spoofed attacks using our addresses.

Now, imagine it - only bigger:

Introduce an amplification effect.

As bigger UDP packets will be fragmented by the servers, and UDP obviously does not do any handshake and can easily be spoofed...
The server receives a large packet, breaks it down to several fragments and moves the query on.
That's where the amplification effect _starts_.

Both the attacked server and the unwilling participant in the attack, the recursive servers, experience a serious DNS denial of service that keeps getting amplified considerably.

One of the problems is obviously the spoofing. Let us, metaphorically and WRONGLY treat it for a minute as the remote exploit.

The second part of this problem is the recursive server, which for the moment we will WRONGLY treat as the local exploit.

Obviously both need to be fixed. Which is easier I am not so sure.

In the past, most network operators refused to implement best practices such as BCP38 (go Fergie!) because they saw no reason for the hassle. Returning back to: "if it isn't being exploited right now, why should I worry about it?"

Well, it is being exploited now, and will be further exploited in the future. Combating spoofing on the Internet is indeed important and now becoming critical.

Removing the spoofing part for a second, the attack vector for this can easily be replaced, as one example, with a botnet.

A million Trojaned hosts sending in even one packet a minute would cause quite a buzz - and do. Now amplify the effect by the recursive servers and...

So, putting the spoofing aside, what do we do about our recursive servers?

There are some good URL's for that, here are some:

The recursive behaviour is necessary for some authoritative servers, but not for all. As a best practice for organizations, as an example, the server facing the world should not also be the one facing your organization (your users/clients). Limiting this ability to your network space is also a good idea.

If you would like to check for yourselves, here is a message from Duane Wessels [1] to the DNS-operations [2] mailing list where this is currently being discussed:
If anyone has the need to test particular addresses for the
presence of open resolvers, please feel free to use this tool:

It will send a single "recursion desired" query to a target address.
If that query is forwarded to our authoritative server, the host
has an open resolver running at that address.

Dan (DA MAN) Kaminsky and Mike Schiffman have done some impressive work on this subject, outlined in Dan's latest ShmooCon talk.
They found ~580K open resolvers:,

I suggest those of us who need more information or help go to the DNS-operations mailing list from OARC (see below) and ask the experts there, now that this is finally public.



[1] Duane Wessels - DNS genius and among other accomplishments the author of dns top.
[2] DNS-operations -


"Out of the box is where I live".
-- Cara "Starbuck" Thrace, Battlestar Galactica.

Relevant Pages

  • Re: DDOS attack Bind 9.9 - P2
    ... server since RRL does not apply to recursive servers? ... Another way to close recursion to the Internet ... server with RRL is far better than a naked open recursive DNS server. ...
  • Re: Recursion issue
    ... It just doesn't all get answered from the one zone. ... A non-recursive query to either of them gets both records in an authoritative answer. ... There is no need to configure recursion on your external authoritative name servers. ...
  • Re: Permitting recursion can allow spammers to steal name server resources
    ... > The default configuration of many domain name servers (DNS) can leave ... relation to allowing global recursion. ... Often those same servers which are the target of spammers will also be ...
  • Re: DNS Recursive Query
    ... server going to OTHER DNS servers to answer the request. ... or by performing the actual recursion from the ROOT ... configured with root hints to recurse from the Internet Root ...
  • Re: DNS recursion question while studying for 70-293
    ... it will query the servers listed as ... forwarders and then return a negative if it can't resolve the query with ... My question is about the servers that are queried as forwarders (DNS B & ... those servers do not have recursion disabled, ...