Dropping external recursive requests

Mark Andrews Mark_Andrews at isc.org
Wed Dec 3 23:26:44 UTC 2008


One needs to be really, really careful here.  There are lots of
unverifiable assumptions in the OP query.  Also rd being set my
just be the result of someone testing with a tool which sets rd by
default.

Going silent on a query reponses protocol is not a good idea.  There
are already too many firewalls / nameservers that do this to
legitimate queries.  We really don't want to encourage this sort
of behaviour.

If it is a forged packet it should be dropped regardless of the setting
of RD.  If the only reason to think the packet is forged is the setting
of RD=1 then the OP has committed a reasoning error.

Mark

In message <1228329427.23380.8.camel at vlab.buxton.lan>, Chris Buxton writes:
> That ought to work, and work well.
> 
> This will not impact outside name servers that query your name server,
> because they send iterative queries. If they're sending recursive
> queries, they're abusing your server. I can't see any problems with this
> approach.
> 
> If you have authoritative data in the third view, make sure that when
> the first view wants to look it up, its iterative query to the server
> machine itself is routed through to the third view (rather than being
> captured by the first view).
> 
> Chris Buxton
> Men & Mice
> 
> On Tue, 2008-12-02 at 17:10 -0800, john at feith.com wrote:
> > Our DNS server occasionally get requests for recursion with forged src
> > addresses.
> > Currently our server returns "Standard query response, Refused" since
> > our named.conf
> > only allows recursion for our internal machines.  This, of course,
> > results in the poor
> > machine whose address was forged receiving spurious traffic.
> > 
> > Some of the Cisco firewalls support DNS inspection and can be
> > configured to drop
> > requests which want recursion.  What are the ramifications of enabling
> > this?
> > 
> > Can bind be configured to do this?  I was thinking about something
> > like:
> > 
> > view "internal" {
> >   match-clients { localhost; localnets; };
> >   ...
> > }
> > 
> > view "external-recursive" {
> >   match-clients { any; };
> >   match-recursive-only yes;
> >   blackhole { any};
> > }
> > 
> > view "external" {
> >   ...
> > }
> > 
> > -- John
> > john at feith.com
> > _______________________________________________
> > bind-users mailing list
> > bind-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/bind-users
> 
> _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list