Re: Finer control over REFUSED, e.g. root referrals

Michael Richardson <[email protected]>
Newsgroups gmane.network.dns.bind9.user
Message-ID <6143.1757342564__5099.00241611234$1757342886$gmane$org@obiwan.sandelman.ca>
Fred Morris <[email protected]> wrote:
    > It needs to recurse to gather the data which it is intended to deliver.
    > It also runs RPZ configured as a WAF ("web application firewall". I
    > know, this is DNS. deal with the cognitive dissonance, starting with the
    > fact that RPZ is referred to as a "DNS firewall" pretty much everywhere)
    > so that only specific, pre-determined queries are allowed. I don't run
    > RRL, I have other measures.

Does this work:
     * turn off recursion on the "front" facing server.
     * use forwarders to forward to an internally facing server that does
       have recursion on.  This can be an alias on lo.  It could even be a view.

I'm not sure if will really work.... reads Bind9-doc..

   "Forwarding can also be configured on a per-domain basis, allowing for the
   global forwarding options to be overridden in a variety of
   ways. Particular domains can be set to use different forwarders, or have a
   different forward only/first behavior, or not forward at all; see zone."

I'm unclear if forwarding is allowed when not recursing.
Given that this DNS server is not serving a zone which needs to be publically
reachable, the concern about an attacker pointing a zone at your server, and
then setting off timeouts elsewhere seems less of a problem.
As I understand it, your WAF is the only client for this redis data?
Why can't your ACL things out?  Even if you have to acceptlist all of EC2 or
something, that would still be a win right?

The second question is why your front-end DNS isn't a secondary for all of
these zones?  Is rkvdns incapable of that?

    > The more I think about it, RPZ is the best option; I don't know why it's
    > incapable of returning REFUSED. Seems like an oversight to me. But if I
    > have to hack the server, I might as well make it so that it returns AA
    > in bailiwick, as well as REFUSED out of bailiwick. I don't need to do
    > that yet. The server is not in The DNS, so it is technically correct
    > declaring itself as root. I'm trying to be proactive here because other
    > people are starting to run this, and you know how things happen.

-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list.
signature.asc (application/pgp-signature, 511 B)
-----BEGIN PGP SIGNATURE-----

iQFFBAEBCgAvFiEEbsyLEzg/qUTA43uogItw+93Q3WUFAmi+62QRHG1jckBzYW5k
ZWxtYW4uY2EACgkQgItw+93Q3WV6VQf6AoJdhhr0hD+KzrsVbdOtxia6n75W6j3m
vLJSw8TOiI3jKmCIRS6epywX/wcGRa0IFZqTNFKiOBG7ORA1D/Yy5bj84DTc5EED
Bn6VGRTCjcM13GJs4hJ3NEwgNGJM9M6//A+I/W9kniA+pDSy8tJZD1l68CogrAqC
p37CC9J2IAgqkuLMs8O6Gm+LKHE17XCbbSZw6NlvghKWd+9I7Ngo539/Rng2PbBR
RC6iCoTwvo36y4pnxTUP/a4GfHB2OxKtMzVUID5EjmtIUltma0iLn/RxAa+gNptZ
aWdP9cLkF1T10QMFZ7wACz5ZlaoX+eIIMVxi04SLSAMiSwxjIm2Zng==
=s0OL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.