Re: [dnsext] SRV and wildcard CNAME

Phillip Hallam-Baker <hallam@gmail.com> Mon, 21 February 2011 04:22 UTC

Return-Path: <dnsext-bounces@ietf.org>
X-Original-To: namedroppers-archive-gleetwall6@lists.ietf.org
Delivered-To: ietfarch-namedroppers-archive-gleetwall6@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9D4713A6F4C; Sun, 20 Feb 2011 20:22:49 -0800 (PST)
X-Original-To: dnsext@core3.amsl.com
Delivered-To: dnsext@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E695E3A6F2C for <dnsext@core3.amsl.com>; Sun, 20 Feb 2011 20:22:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.546
X-Spam-Level:
X-Spam-Status: No, score=-3.546 tagged_above=-999 required=5 tests=[AWL=0.052, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ny5X48OaRtZI for <dnsext@core3.amsl.com>; Sun, 20 Feb 2011 20:22:46 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by core3.amsl.com (Postfix) with ESMTP id 7234D3A6F11 for <dnsext@ietf.org>; Sun, 20 Feb 2011 20:22:46 -0800 (PST)
Received: by iyj8 with SMTP id 8so201689iyj.31 for <dnsext@ietf.org>; Sun, 20 Feb 2011 20:23:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=H2RwFMmTtYT+ELeNvDVqUmebBJ+AvyHpOYkurWrpzLg=; b=nTivhTBhZ4U3E/0pqAZycczAse3Nhs9s9L3mQHJ4DYzd3pRTudUPPV5G4NhzWoUrS/ LxFr5uBXRQg3rI+dn8pB2QpfYdrEJxTQPrhoFT+d9BkVuLFVsQ4+jQJGkyeVeGsShelu YVi5PJSI0n48FYGEWeP4417j9RnaeAdYthI6E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Bx68TKI/8fWCDluAawGWiA/eTDlaKa3DDSxjOVD6ZUO5cPOVt2KLykCfJ2NRaaEiJK ynCu8q7E+VPFxf6kEp+IrFQ+ljyTLNmepXmH22J/AWPKqvJZV1+uu0v4FF8ZP0KPd8fh RWjEN0C0qi0Dm4nidVTiv3BdJp1Jnun7kB+WQ=
MIME-Version: 1.0
Received: by 10.42.174.193 with SMTP id w1mr1341388icz.338.1298262206883; Sun, 20 Feb 2011 20:23:26 -0800 (PST)
Received: by 10.42.211.138 with HTTP; Sun, 20 Feb 2011 20:23:26 -0800 (PST)
In-Reply-To: <4D61E272.1050600@necom830.hpcl.titech.ac.jp>
References: <20110216032120.43474.qmail@joyce.lan> <alpine.LSU.2.00.1102161143180.5244@hermes-1.csi.cam.ac.uk> <20110216212930.57D64A3F344@drugs.dv.isc.org> <4D5D24F3.70206@gis.net> <20110217231720.1FCF3A49096@drugs.dv.isc.org> <4D5E08E4.8060106@necom830.hpcl.titech.ac.jp> <AANLkTikjBvndD91q1jQeU9Q45qZyJbBs8t_wZkFezSfa@mail.gmail.com> <4D61B702.7060902@necom830.hpcl.titech.ac.jp> <20110221011731.F0FE0A6B00F@drugs.dv.isc.org> <4D61C45E.7000506@necom830.hpcl.titech.ac.jp> <20110221022950.BE88CA6B2DD@drugs.dv.isc.org> <4D61D194.9040804@necom830.hpcl.titech.ac.jp> <4D61D350.9040401@maxqe.com> <4D61E272.1050600@necom830.hpcl.titech.ac.jp>
Date: Sun, 20 Feb 2011 20:23:26 -0800
Message-ID: <AANLkTik8YQYd82vYt6A_j+gDBBSmntju+xh5BQeTX+H5@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Masataka Ohta <mohta@necom830.hpcl.titech.ac.jp>
Cc: dnsext@ietf.org
Subject: Re: [dnsext] SRV and wildcard CNAME
X-BeenThere: dnsext@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: DNS Extensions working group discussion list <dnsext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/dnsext>, <mailto:dnsext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dnsext>
List-Post: <mailto:dnsext@ietf.org>
List-Help: <mailto:dnsext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsext>, <mailto:dnsext-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1111506266=="
Sender: dnsext-bounces@ietf.org
Errors-To: dnsext-bounces@ietf.org

On Sun, Feb 20, 2011 at 7:56 PM, Masataka Ohta <
mohta@necom830.hpcl.titech.ac.jp> wrote:

> Larry Brower wrote:
>
> > I disagree, I say you are wasting it. Mark told you why it was a bad
> > idea and you just want to argue the point.
>
> It was already argued before Mark's first response:
>
> > Non existent protocols are not a problem, because they just do
> > not work, which is fine.
> > The problem is that protocols used share a port.
> > However, as the only protocol which may be used by *LAZY* users,
> > other than http, is https, it may share the same port as http,
> > if servers are implemented to distinguish them by the first
> > byte of the request.
>
> and, again, just after Mark's first response:
>
> > When the protocols used at the domain are http and https only,
> > nothing break.
>
> Protocols not used at a domain can not break at the domain,
> because they are not used.
>
> But Mark *REPEATED* his unfounded statement, which is
> the waste of bandwidth.


Mark is quite correct here.

I have been looking at this problem for five years now and I can assure you
that if Mark was wrong, I would know it.


The fundamental limitation here is that prefix records can only be applied
to canonical names. They do not give the desired results if either wildcards
or aliases are used.

Consider the following:

*.example.com   SRV 1 1 80 host1.example.com

Any attempt to resolve any service in example.com  will succeed whether or
not the service is provided. In other words the domain is advertising
services it does not support, this is a failure for a discovery mechanism.


The following attempt to create an alias for example.net to example.com also
fails:

example.net  CNAME example.com
_http._tcp.example.com SRV 1 1 80 host1.example.com


These are problematic because wildcards and aliases are features we want in
the DNS and they should be supported by advanced discovery.

The mechanism that I hope to have ready for an ID next week adopts the
following approach

Phase 1: Domain Resolution

The query is made for an unprefixed record. This query will return one of
the following results:

1) Domain not found - game over
2) CNAME alias - maps to canonical name
3) Record returned saying 'use SRV, use URI, use TBD'

In the case of a wildcard, there is a need to specify the address at which a
prefix record is to be applied.


Phase 2: Service Resolution

If indicated by domain resolution, SRV or URI resolution is employed to
resolve the service to a host.


It is possible to save the principle of prefix resolution and make aliases
and wildcard work. But not by pretending that there is no issue to be
solved.

-- 
Website: http://hallambaker.com/
_______________________________________________
dnsext mailing list
dnsext@ietf.org
https://www.ietf.org/mailman/listinfo/dnsext