Re: [DNSOP] Fundamental ANAME problems

"Patrik Fältström " <paf@frobbit.se> Mon, 05 November 2018 19:14 UTC

Return-Path: <paf@frobbit.se>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B004412785F for <dnsop@ietfa.amsl.com>; Mon, 5 Nov 2018 11:14:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.721
X-Spam-Level:
X-Spam-Status: No, score=-1.721 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=frobbit.se
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J8Cg9-u6g9lU for <dnsop@ietfa.amsl.com>; Mon, 5 Nov 2018 11:14:56 -0800 (PST)
Received: from mail.frobbit.se (mail.frobbit.se [IPv6:2a02:80:3ffe::176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EA07A1277D2 for <dnsop@ietf.org>; Mon, 5 Nov 2018 11:14:55 -0800 (PST)
Received: from [192.71.80.208] (vpn-client-208.netnod.se [192.71.80.208]) by mail.frobbit.se (Postfix) with ESMTPSA id 477E2231C5; Mon, 5 Nov 2018 20:14:51 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=frobbit.se; s=mail; t=1541445292; bh=k3iwhXQ7TZdlXwdH9o6ENrqfcVwMsy/TBL/xBSgKiIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WZYB1DAG0/dUoyaAJjEDMjQGMKg3W16e+vmCOjMyWki+mbff2MYMs33X8QZsjYmr1 OVWXGIzMYQtSEqy0x0t3Bs497rvYqqwyAHnso6TmP8Riye8RH1hgRjX7OjusWvr0XM ZAaqbVtC7h4qCP2Xemi6gQfYd+172TjXjatGXFJU=
From: Patrik Fältström <paf@frobbit.se>
To: Måns Nilsson <mansaxel@besserwisser.org>
Cc: Joe Abley <jabley@hopcount.ca>, Bob Harold <rharolde@umich.edu>, IETF DNSOP WG <dnsop@ietf.org>, Brian Dickson <brian.peter.dickson@gmail.com>
Date: Mon, 05 Nov 2018 23:14:48 +0400
X-Mailer: MailMate (1.12.1r5552)
Message-ID: <C457B2E6-E2C5-4350-82B5-2451C157E2D9@frobbit.se>
In-Reply-To: <20181103193258.GE20885@besserwisser.org>
References: <CAH1iCirXYsYB3sAo8f1Jy-q4meLmQAPSFO-7x5idDufdT_unXQ@mail.gmail.com> <CA+nkc8C6yVT62cW5QP-ec2ZT7FY_n48Ecr=CLeE6FS_1duBO8g@mail.gmail.com> <CAJhMdTOwU88BkukodL_zXcK1=JenExX4HL46Zzbw=+btLbDG2A@mail.gmail.com> <20181103193258.GE20885@besserwisser.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=_MailMate_0DA4FFE3-9080-48DE-BF0F-EEAE33E0A79A_="; micalg="pgp-sha1"; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/gftyqJbmom3Y2y-1VzEF4V9Qrhk>
Subject: Re: [DNSOP] Fundamental ANAME problems
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Nov 2018 19:14:58 -0000

On 3 Nov 2018, at 23:32, Måns Nilsson wrote:

> _http._tcp.example.org. IN URI	10 20	"https://example-lb-frontend.hosting.namn.se:8090/path/down/in/filestructure/"

Btw, this is sort of what I am thinking of for URI, cooked up directly after dinner. Could be a wrapper around curl that fetches stuff. Probably hundreds of bad stuff in what I have below, but still...you get the point.

You can try with http://www.frobbit.se/ or http://frobbit.se/ for example, as I have URI records for them.

#!/bin/sh

PREFIX=_http._tcp
DOMAIN=`echo "$1" | sed 's/^.*\/\/\([^\/]*\)\/.*$/\1/'`
QUERY=`echo "$1" | sed 's/^.*\/\/[^\/]*\/\(.*\)$/\1/'`
URI=`dig "$PREFIX.$DOMAIN." URI +short`
if [ "x$URI" = x ]; then
   NEWURI="$1"
else
   NEWURI="`echo $URI | awk '-F"' '{ print $2 }'`${QUERY}"
fi

echo curl -H "HOST:$DOMAIN" "$NEWURI"