Re: [dnsext] New RRtype "KREALM" in draft-vanrein-dnstxt-krb1-02.txt

"Niall O'Reilly" <> Fri, 11 September 2015 13:40 UTC

Return-Path: <>
Received: from localhost ( []) by (Postfix) with ESMTP id 7F5471B4014 for <>; Fri, 11 Sep 2015 06:40:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_35=0.6, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 0fNQbeZDCpel for <>; Fri, 11 Sep 2015 06:40:15 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id F20581A1B6C for <>; Fri, 11 Sep 2015 06:40:14 -0700 (PDT)
Received: by wiclk2 with SMTP id lk2so58829903wic.1 for <>; Fri, 11 Sep 2015 06:40:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20130820; h=x-gm-message-state:from:date:message-id:to:cc:subject:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=LEEg9f8Zk+K582teAOCRIot09biF5Ru0m9dXzO6mMZA=; b=OkhE+ST12FBw9+4MaTrdhnX5yC6mvje7xrdq/7SgOnTLxMtFJOLrpQSz0gzRO9GZed O49CVE0tJAFdfS5PupIqw1b07DDvkVjaSKxDKxcGghyIs9oZgOjM1mEslWDiXyBSo6kO 7TuH0ryGeZvfn55QLxwTXhIE4VCK8u+PXRY/+LJdlI35QD+01CQ5TtVD7wCT1HlQD1TE 8gplh7qnoZMIkliac4Pn2x66CrupAZMOaPomY3GNzTlAV+2LxEmxrhkVnXdXrkzUIw2n 5oaNMqmO+8KQYBfhHIkvLWf2Rhq+2Q8Mhovv54NgdreduiNVcj5i0JZhq9O3xzz9azbI 5tcw==
X-Gm-Message-State: ALoCoQmCzeX0l18dZmvx7oV6WeifYEDOs9VUmUcMUwpPZYo4aoMU0PkPIZrevxT6irBVi7dEoP2O
X-Received: by with SMTP id w12mr4878387wij.0.1441978813414; Fri, 11 Sep 2015 06:40:13 -0700 (PDT)
Received: from ([2001:770:13f:1:982e:1026:6ec6:8956]) by with ESMTPSA id pu6sm429404wjc.34.2015. (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 06:40:12 -0700 (PDT)
From: "Niall O'Reilly" <>
X-Google-Original-From: Niall O'Reilly <>
Date: Fri, 11 Sep 2015 14:40:11 +0100
Message-ID: <>
To: Rick van Rein <>
In-Reply-To: <>
References: <> <> <> <> <> <> <>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.5 Mule/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <>
Subject: Re: [dnsext] New RRtype "KREALM" in draft-vanrein-dnstxt-krb1-02.txt
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS Extensions working group discussion list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 11 Sep 2015 13:40:21 -0000

On Fri, 11 Sep 2015 12:14:34 +0100,
Rick van Rein wrote:

  Hi, Rick.

> Hi Tony,
> Thanks for thinking along!
> > I was thinking
> >
> > @ KREALM "realm" "EXAMPLE.COM"
> > KREALM "realm" "EXAMPLE.ORG"
> > KREALM "admin" "carl"
> > KREALM "admin" "mary"
> > KREALM "service" "HTTP"
> > KREALM "service" "imap"
> That would make it impossible to express everything that is desired. 
> The level of alternation that you are using here has been reserved for
> independent statements; the combined tag=value statements form a
> cross-product; for example all the realms mentioned combine with all the
> admins mentioned in the same RDATA portion.  If another realm has
> another admin set it will be specified in a separate KREALM.

  Don't you end up with a potentially large but sparse matrix of
  valid tag/value pairs in this model, Rick?

  Would a two-stage representation of the data you need work?
  I'm thinking of normalization and foreign keys.

  Here's an example below.

    ; advertise realms to which $ORIGIN belongs
    ; so that clients can perform discovery
    ; this RRset is the REALM-SET
    @ KREALM "realm" "EXAMPLE.COM"
    @ KREALM "realm" "EXAMPLE.ORG"
    ; for each realm at $ORIGIN, advertise its attributes
    ; this RRset is the ATTRIBUTE-SET for realm "EXAMPLE.COM" at $ORIGIN
    EXAMPLE.COM._realm	   KREALM "admin" "carl"
    EXAMPLE.COM._realm	   KREALM "service" "HTTP"
    ; this RRset is the ATTRIBUTE-SET for realm "EXAMPLE.ORG" at $ORIGIN
    EXAMPLE.ORG._realm	   KREALM "admin" "mary"
    EXAMPLE.ORG._realm	   KREALM "service" "imap"
  If the realm isn't really "at" $ORIGIN, a CNAME reference might be

  If this approach risks string overflow in the owner names, an
  alternative might be to use

    @ KREALM <realm-handle> <realm-name>

  for the REALM-SET, and use the same handle in composing the owner
  name of the ATTRIBUTE-SET, so:

    r1._realm	KREALM "admin" "carl"
    ; ...
    r2._realm	KREALM "admin" "mary"

  As I write, it occurs to me that it may be more "natural" to assign
  the RDATE fields in the REALM-SET in the reverse order.  That's a
  detail which just needs to be unambiguously specified. 8-)

  This-all seems to keep the option of re-using HINFO as Tony suggested.