DNS Response Policy Zones (RPZ)
draft-vixie-dnsop-dns-rpz-00

Document Type Active Internet-Draft (individual)
Last updated 2018-08-26 (latest revision 2018-06-23)
Replaces draft-ietf-dnsop-dns-rpz
Stream ISE
Intended RFC status Informational
Formats plain text xml pdf html bibtex
Stream ISE state In ISE Review
Awaiting Reviews
Consensus Boilerplate Unknown
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Domain Name System Operations                                   P. Vixie
Internet-Draft                                   Farsight Security, Inc.
Intended status: Informational                               V. Schryver
Expires: December 23, 2018                        Rhyolite Software, LLC
                                                           June 21, 2018

                    DNS Response Policy Zones (RPZ)
                      draft-vixie-dnsop-dns-rpz-00

Abstract

   This document describes a method for expressing DNS response policy
   inside a specially constructed DNS zone, and for recursive name
   servers to use such policy to return modified results to DNS clients.
   The modified DNS results can stop access to selected HTTP servers,
   redirect users to "walled gardens", block objectionable email, and
   otherwise defend against attack.  These "DNS Firewalls" are widely
   used in fighting Internet crime and abuse.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on December 23, 2018.

Copyright Notice

   Copyright (c) 2018 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must

Vixie & Schryver        Expires December 23, 2018               [Page 1]
Internet-Draft                   DNS RPZ                       June 2018

   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

   This document may not be modified, and derivative works of it may not
   be created, except to format it for publication as an RFC or to
   translate it into languages other than English.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Zone Format . . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Policy Actions  . . . . . . . . . . . . . . . . . . . . . . .   5
     3.1.  The "NXDOMAIN" Action (CNAME .) . . . . . . . . . . . . .   5
     3.2.  The "NODATA" Action (CNAME *.)  . . . . . . . . . . . . .   5
     3.3.  The "PASSTHRU" Action (CNAME rpz-passthru.) . . . . . . .   5
     3.4.  The "DROP" Action (CNAME rpz-drop.) . . . . . . . . . . .   6
     3.5.  The "TCP-Only" Action (CNAME rpz-tcp-only.) . . . . . . .   6
     3.6.  The "Local Data" Action (arbitrary RR types)  . . . . . .   6
   4.  Policy Triggers . . . . . . . . . . . . . . . . . . . . . . .   8
     4.1.  The "Client IP Address" Trigger (.rpz-client-ip)  . . . .   9
     4.2.  The "QNAME" Trigger ("example.com") . . . . . . . . . . .  10
     4.3.  The "Response IP Address" Trigger (.rpz-ip) . . . . . . .  10
     4.4.  The "NSDNAME" Trigger (.rpz-nsdname)  . . . . . . . . . .  11
     4.5.  The "NSIP" Trigger (.rpz-nsip)  . . . . . . . . . . . . .  12
   5.  Precedence Rules  . . . . . . . . . . . . . . . . . . . . . .  13
     5.1.  "CNAME or DNAME Chain Position" Precedence Rule . . . . .  14
     5.2.  "RPZ Ordering" Precedence Rule  . . . . . . . . . . . . .  14
     5.3.  "Domain Name Matching" Precedence Rule  . . . . . . . . .  14
     5.4.  "Trigger Type" Precedence Rule  . . . . . . . . . . . . .  15
     5.5.  "Name Order" Precedence Rule  . . . . . . . . . . . . . .  15
     5.6.  "Prefix Length" Precedence Rule . . . . . . . . . . . . .  16
     5.7.  "IP Address Order" Precedence Rule  . . . . . . . . . . .  16
   6.  Application of the Policy . . . . . . . . . . . . . . . . . .  17
     6.1.  Per-Zone Action Overrides . . . . . . . . . . . . . . . .  18
   7.  Producer Behavior . . . . . . . . . . . . . . . . . . . . . .  19
   8.  Subscriber Behavior . . . . . . . . . . . . . . . . . . . . .  20
   9.  Implementation Considerations . . . . . . . . . . . . . . . .  20
     9.1.  Avoid Waiting for QNAME Recursion . . . . . . . . . . . .  21
     9.2.  Check Parents Domains versus Zone Cuts  . . . . . . . . .  21
     9.3.  Abbreviate the Data Path for NSDNAME and NSIP Checks  . .  22
     9.4.  Use Glue for NSDNAME and NSIP Checks  . . . . . . . . . .  22
Show full document text