
Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id XAA24631 for urn-ietf-out; Fri, 26 Feb 1999 23:34:54 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id XAA24622 for <urn-ietf@services.bunyip.com>; Fri, 26 Feb 1999 23:34:51 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id XAA19223 for urn-ietf@services; Fri, 26 Feb 1999 23:32:02 -0500 (EST)
Received: from mailserver ([202.54.106.227]) by mocha.bunyip.com (8.8.5/8.8.5) with SMTP id XAA19220 for <urn-ietf@BUNYIP.COM>; Fri, 26 Feb 1999 23:31:56 -0500 (EST)
Received: by mailserver with XtraMail-SMTP/POP3-Server (v1.10 58210006074) for <urn-ietf@BUNYIP.COM> at Sat, 27 Feb 99  10:00:42 +0570
Received: from proxy1.ba.best.com (root@proxy1.ba.best.com [206.184.139.12]) by fpage1.ba.best.com (8.9.2/8.9.2/best.sh) with ESMTP id TAA08912 for <ravibaid+XRCPT.61616c6f6b4042495351554152452e434f4d@fpage1.ba.best.com>; Fri, 26 Feb 1999 19:54:46 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by proxy1.ba.best.com (8.9.3/8.9.2/best.in) with ESMTP id TAA06637; Fri, 26 Feb 1999 19:53:41 -0800 (PST)
Received: by ietf.org (8.9.1a/8.9.1a) id WAA22175 for ietf-123-outbound.02@ietf.org; Fri, 26 Feb 1999 22:45:09 -0500 (EST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA01579; Fri, 26 Feb 1999 17:38:58 -0500 (EST)
Message-Id: <199902262238.RAA01579@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: urn-ietf@bunyip.com
From: Internet-Drafts@ietf.org
Subject: [URN] I-D ACTION:draft-ietf-urn-naptr-rr-01.txt
Date: Fri, 26 Feb 1999 17:38:58 -0500
X-Rcpt-To: aalok@bisquare.com
X-UIDL: 35e4f53509611ebb6d0bc2e34eea61b1
Status: U
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Internet-Drafts@ietf.org
Errors-To: owner-urn-ietf@Bunyip.Com

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Uniform Resource Names Working Group of the IETF.

	Title		: The Naming Authority Pointer 
                          (NAPTR) DNS Resource Record
	Author(s)	: M. Mealling, R. Daniel
	Filename	: draft-ietf-urn-naptr-rr-01.txt
	Pages		: 15
	Date		: 25-Feb-99
	
   This document describes a DNS Resource Record (RR) which specifies
   a rewrite rule that, when applied to an existing string,
   will produce a new domain. Reasons for rewriting a domain
   vary from URN Resource Discovery Systems to moving out-of-date
   services to new domains.
 
   This document updates those portions of RFC2168 specifically
   dealing with the definition of the NAPTR record.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-urn-naptr-rr-01.txt

Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-urn-naptr-rr-01.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-urn-naptr-rr-01.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<19990225100806.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-urn-naptr-rr-01.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-urn-naptr-rr-01.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<19990225100806.I-D@ietf.org>

--OtherAccess--

--NextPart--






Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id VAA23358 for urn-ietf-out; Fri, 26 Feb 1999 21:07:34 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id VAA23353 for <urn-ietf@services.bunyip.com>; Fri, 26 Feb 1999 21:07:32 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id VAA18948 for urn-ietf@services; Fri, 26 Feb 1999 21:04:46 -0500 (EST)
Received: from fire.adisys.com.au (phoenix.adisys.com.au [203.20.100.67]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id VAA18945 for <urn-ietf@Bunyip.Com>; Fri, 26 Feb 1999 21:04:42 -0500 (EST)
Received: (from nobody@localhost) by fire.adisys.com.au (8.8.8/8.7.3) id KAA03465; Sat, 27 Feb 1999 10:06:04 +0800 (WST)
X-Authentication-Warning: fire.adisys.com.au: nobody set sender to <couch@ccis.adisys.com.au> using -f
Received: from hawk(193.10.80.9) by fire via smap (V2.0) id xma003461; Sat, 27 Feb 99 10:05:50 +0800
Received: from ccis.adisys.com.au (beardie [193.10.80.73]) by ccis.adisys.com.au (8.8.8/8.8.8) with ESMTP id KAA20416; Sat, 27 Feb 1999 10:08:58 +0800 (WST)
Message-ID: <36D7462F.5659F035@ccis.adisys.com.au>
Date: Sat, 27 Feb 1999 09:11:11 +0800
From: Justin Couch <couch@ccis.adisys.com.au>
Organization: ADI Ltd Systems Group
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: "Aaron E. Walsh" <aaron@mantiscorp.com>
CC: IETF URN WG <urn-ietf@bunyip.com>
Subject: Re: [URN] ANN: Java URI Code v0.5
References: <36D54F06.2F9770E8@ccis.adisys.com.au> <36D6FBA0.B2B0DE33@mantiscorp.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Justin Couch <couch@ccis.adisys.com.au>
Errors-To: owner-urn-ietf@Bunyip.Com

Aaron E. Walsh wrote:

> Is this rev one I can turn the Universal Media working group onto, or
> would you like to keep it private for now?

Let 'em at it. This is the first point where I think it is stable enough
to be used in any application. The major issues now are just lack of
support for various protocol handling like HTTP, FTP, JAR etc. I can't
just copy and modify Sun's Java2 source to suit my apps due to the SCSL
so it means doing a lot of it from scratch or snaffling other code.
 
> I can also point some people in the MPEG4 group to your download if
> you'd like, since we've been talking about implementing Universal Media
> in their system but with a network-based resolver (as opposed to the
> local resolver used by Universal Media).

Sure. Just have to remember that this code is Java only. I suspect the
MPEG guys would like to see C/C++ versions. I'd like to put some effort
into one of these ports, but since I'm now doing a lot of the
development within work contexts java is the only one getting attention. 

Another point is that I really need to get some web page front ends up.
At the moment it is just the raw directory being shown. 

-- 
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                     couch@ccis.adisys.com.au
ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id RAA21081 for urn-ietf-out; Fri, 26 Feb 1999 17:39:07 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id RAA21076 for <urn-ietf@services.bunyip.com>; Fri, 26 Feb 1999 17:39:05 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id RAA18241 for urn-ietf@services; Fri, 26 Feb 1999 17:36:22 -0500 (EST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id RAA18238 for <urn-ietf@bunyip.com>; Fri, 26 Feb 1999 17:36:20 -0500 (EST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA01579; Fri, 26 Feb 1999 17:38:58 -0500 (EST)
Message-Id: <199902262238.RAA01579@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: urn-ietf@bunyip.com
From: Internet-Drafts@ietf.org
Subject: [URN] I-D ACTION:draft-ietf-urn-naptr-rr-01.txt
Date: Fri, 26 Feb 1999 17:38:58 -0500
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Internet-Drafts@ietf.org
Errors-To: owner-urn-ietf@Bunyip.Com

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Uniform Resource Names Working Group of the IETF.

	Title		: The Naming Authority Pointer 
                          (NAPTR) DNS Resource Record
	Author(s)	: M. Mealling, R. Daniel
	Filename	: draft-ietf-urn-naptr-rr-01.txt
	Pages		: 15
	Date		: 25-Feb-99
	
   This document describes a DNS Resource Record (RR) which specifies
   a rewrite rule that, when applied to an existing string,
   will produce a new domain. Reasons for rewriting a domain
   vary from URN Resource Discovery Systems to moving out-of-date
   services to new domains.
 
   This document updates those portions of RFC2168 specifically
   dealing with the definition of the NAPTR record.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-urn-naptr-rr-01.txt

Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-urn-naptr-rr-01.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-urn-naptr-rr-01.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<19990225100806.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-urn-naptr-rr-01.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-urn-naptr-rr-01.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<19990225100806.I-D@ietf.org>

--OtherAccess--

--NextPart--




Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id OAA18499 for urn-ietf-out; Fri, 26 Feb 1999 14:48:52 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id OAA18494 for <urn-ietf@services.bunyip.com>; Fri, 26 Feb 1999 14:48:49 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id OAA17494 for urn-ietf@services; Fri, 26 Feb 1999 14:46:10 -0500 (EST)
Received: from LOGOS.CC.BRANDEIS.EDU (logos.cc.brandeis.edu [129.64.1.2]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id OAA17491 for <urn-ietf@Bunyip.Com>; Fri, 26 Feb 1999 14:46:03 -0500 (EST)
Received: from 194.95.190.239 (194.95.190.239) by LOGOS.CC.BRANDEIS.EDU (PMDF V5.0-8 #17137) id <01J87BV0XSI8BMCMYN@LOGOS.CC.BRANDEIS.EDU>; Fri, 26 Feb 1999 14:48:40 -0500 (EST)
Date: Fri, 26 Feb 1999 14:53:04 -0500
From: "Aaron E. Walsh" <aaron@mantiscorp.com>
Subject: Re: [URN] ANN: Java URI Code v0.5
To: Justin Couch <couch@ccis.adisys.com.au>
Cc: IETF URN WG <urn-ietf@bunyip.com>
Message-id: <36D6FBA0.B2B0DE33@mantiscorp.com>
Organization: Mantis Development Corp.
MIME-version: 1.0
X-Mailer: Mozilla 4.5 [en] (Win98; I)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Accept-Language: en
References: <36D54F06.2F9770E8@ccis.adisys.com.au>
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: "Aaron E. Walsh" <aaron@mantiscorp.com>
Errors-To: owner-urn-ietf@Bunyip.Com

Hi Justin,

Is this rev one I can turn the Universal Media working group onto, or
would you like to keep it private for now?

I'm writing from VRML99 in Germany, and I think URNs are really starting
to get their due attention. The Universal Media workshop presentation I
gave on Wednesday introduced URNs in some detail, and they've since
surfaced in discussions and on other workshop slides as something to
consider supporting along with the ubiquitous URL.

I can also point some people in the MPEG4 group to your download if
you'd like, since we've been talking about implementing Universal Media
in their system but with a network-based resolver (as opposed to the
local resolver used by Universal Media).

Just give me the word :)

Aaron

-----------------------------------------------------------------------
Aaron E. Walsh
  http://www.mantiscorp.com/people/aew/

Chair, Web3D Universal Media Element Library (Web3D-UMEL) Working Group
  http://www.web3d.org/WorkingGroups/umel/

Co-chair, Web3D Intellectual Property Rights (Web3D-IPR) Task Group 
  http://www.web3d.org/TaskGroups/vrml-ipr/
-----------------------------------------------------------------------


Justin Couch wrote:
> 
> As previously mentioned....
> 
> My implemenation of URI handling code is now available online. This is
> version 0.5 and represents the first stable release that potentially
> could be used in a production environment. One of the features of this
> code is the complete flexibility to allow any sort of resolver (RDS) to
> work with it regardless of how the URN is represented.
> 
> The code as it exists is being used in our latest application
> development which is a mobile C3I system for special forces and
> emergency services markets so it is taking a hammering testing wise. I'm
> pretty confident about stability and usablity aspects.
> 
> I've attached the included readme file below. Please d/l and play with
> the code.
> 
> --
> Justin Couch                                   Author, Java Hacker
> Snr Software Engineer                     couch@ccis.adisys.com.au
> ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
> Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
> -------------------------------------------------------------------
> "Look through the lens, and the light breaks down into many lights.
>  Turn it or move it, and a new set of arrangements appears... is it
>  a single light or many lights, lights that one must know how to
>  distinguish, recognise and appreciate? Is it one light with many
>  frames or one frame for many lights?"      -Subcomandante Marcos
> -------------------------------------------------------------------
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
>                                Readme.txt
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
>                          URN implementation V0.5
> 
>                    (c) The Virtual Light Company 1999
> 
> This is the first public, widely announced release of the URI code.
> As such, there are still many things missing functionality-wise. It
> is almost feature complete and is running in a commercial test
> environment. I want as much feedback as possible - good, bad or
> otherwise.
> 
> Licensing
> -----------
> 
> This code is released under the GNU LGPL. If you wish to redistribute
> this code then you must include the license.txt file as is.
> 
> The original copy of this code can be found at
> 
> http://www.vlc.com.au/~justin/java/urn/uri_0.5.zip
> 
> This code makes use of other 3rd party GNU libraries.
> 
> GNU Regexp v1.0.6 can be found at:
>   http://www.cacas.org/~wes/java/
> 
> The GNU LGPL can be found in license.txt or at
> http://www.gnu.org/lgpl.html
> 
> #include <std_disclaimer.h>
> 
> Installing
> -----------
> 
> Sorry, no JAR file yet. Just extract everything from the zip file (or
> leave it in there if you wish) and point the classpath at it. Make sure
> that urn.conf and urn_bindings may be found from the classpath as that
> is how they are loaded.
> 
> Place gun_regexp_106.jar into your classpath
> 
> Once you've done this, then you may import the classes under
> org.ietf.uri.* and run code with them.
> 
> This code makes very heavy use of JDK 1.2 so you need that to be running
> this library.
> 
> Add your own naming schemes to the urn_bindings file. Comments indicate
> where to find the syntax definition.
> 
> To generate javadocs run  make_docs.[sh|bat] for your platform. The
> unix shell script is untested though!
> 
> Philosophy
> -----------
> 
> The idea of these classes is to completely replace everything in
> java.net.
> In your application, everywhere that you reference java.net.URL change
> that
> to org.ietf.uri.URL. There are some other differences that are better
> in behaviour, so it is not a completely pluggable replacement.
> 
> At the bottom end, a lot more things are configurable and perform the
> way
> that you expect them to behave. You can put multiple FileNameMaps and
> multiple factory implemenations for content and protocol handler (some
> parts
> not implemented yet). You can fetch the currently set factory.
> 
> I've made the best attempt possible at seamless integration with the
> java.net classes to ease migration hassles. You can use the same content
> handlers and filename maps. Unfortunately you cannot use the protocol
> handlers due to a design decision by Sun stopping an external class from
> fetching URLConnections. There are public wrapper classes for everything
> that it is possible to use.
> 
> There are a number of minor and potentially troubling aspects with this
> that may not allow full use of the java.net stuff. Read the comments at
> the top of JavaNetURLConnectionWrapper for when the code deals with
> URNs.
> 
> TODO
> -----
> 
> - Build lots of content handlers! The default one is for text/plain. I
> will shortly have image loaders available. Stay tuned.
>   o handler for text/uri-list needed.
>   o handler for HTML needed
> 
> - Protocol handlers for HTTP and FTP are needed. Have some GNU'd code to
> work with, but work is incomplete.
> 
> - Resolvers:
>  o Complete the DNS based resolver based on NetSol code (Problem is that
>    its license doesn't allow commercial use which is a pain)
>  o JINI based resolver
>  o THTTP resolver
> 
> - Content handler and ResourceConnection code should have a listener for
> a percentage complete type feedback and authentication stuff.
> 
> - Complete URL implementation. Currently is mainly delegating directly
> to java.net.URL. This needs to be ripped out and replaced with proper
> working code (the java.net implementation is very wrong in a couple of
> places). Also, the resolving to URN/URC from URL needs to be looked at.
> 
> Justin Couch, 25 Feb 1999
> couch@ccis.adisys.com.au (work)
> justin@vlc.com.au (home)



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id WAA01872 for urn-ietf-out; Thu, 25 Feb 1999 22:56:42 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id WAA01865 for <urn-ietf@services.bunyip.com>; Thu, 25 Feb 1999 22:56:40 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id WAA14111 for urn-ietf@services; Thu, 25 Feb 1999 22:54:22 -0500 (EST)
Received: from fire.adisys.com.au (phoenix.adisys.com.au [203.20.100.67]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id WAA14108 for <urn-ietf@Bunyip.Com>; Thu, 25 Feb 1999 22:54:18 -0500 (EST)
Received: (from nobody@localhost) by fire.adisys.com.au (8.8.8/8.7.3) id LAA21491 for <urn-ietf@Bunyip.Com>; Fri, 26 Feb 1999 11:55:45 +0800 (WST)
X-Authentication-Warning: fire.adisys.com.au: nobody set sender to <couch@ccis.adisys.com.au> using -f
Received: from hawk(193.10.80.9) by fire via smap (V2.0) id xma021486; Fri, 26 Feb 99 11:55:36 +0800
Received: from ccis.adisys.com.au (beardie [193.10.80.73]) by ccis.adisys.com.au (8.8.8/8.8.8) with ESMTP id LAA02101 for <urn-ietf@Bunyip.Com>; Fri, 26 Feb 1999 11:58:44 +0800 (WST)
Message-ID: <36D60E6A.2D1EF2AD@ccis.adisys.com.au>
Date: Fri, 26 Feb 1999 11:00:58 +0800
From: Justin Couch <couch@ccis.adisys.com.au>
Organization: ADI Ltd Systems Group
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: IETF URN WG <urn-ietf@bunyip.com>
Subject: Re: [URN] ANN: Java URI Code v0.5
References: <36D54F06.2F9770E8@ccis.adisys.com.au>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Justin Couch <couch@ccis.adisys.com.au>
Errors-To: owner-urn-ietf@Bunyip.Com

More to add util wise to make the URI libs more useful. Sorry this is
off topic for this list but I felt it is worthwhile for those wishing to
play with my libraries.

I've just posted a bunch of content handlers for dealing with images.
This supplements the URI library I released yesterday.

These image handlers can be found at

http://www.vlc.com.au/~justin/java/images/imageloader_0.9.zip


-- 
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                     couch@ccis.adisys.com.au
ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id JAA18835 for urn-ietf-out; Thu, 25 Feb 1999 09:20:25 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id JAA18830 for <urn-ietf@services.bunyip.com>; Thu, 25 Feb 1999 09:20:23 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id JAA11540 for urn-ietf@services; Thu, 25 Feb 1999 09:18:21 -0500 (EST)
Received: from fire.adisys.com.au (phoenix.adisys.com.au [203.20.100.67]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id JAA11537 for <urn-ietf@bunyip.com>; Thu, 25 Feb 1999 09:18:16 -0500 (EST)
Received: (from nobody@localhost) by fire.adisys.com.au (8.8.8/8.7.3) id WAA10508 for <urn-ietf@bunyip.com>; Thu, 25 Feb 1999 22:19:23 +0800 (WST)
X-Authentication-Warning: fire.adisys.com.au: nobody set sender to <couch@ccis.adisys.com.au> using -f
Received: from hawk(193.10.80.9) by fire via smap (V2.0) id xma010500; Thu, 25 Feb 99 22:19:01 +0800
Received: from ccis.adisys.com.au (beardie [193.10.80.73]) by ccis.adisys.com.au (8.8.8/8.8.8) with ESMTP id WAA05111 for <urn-ietf@bunyip.com>; Thu, 25 Feb 1999 22:22:07 +0800 (WST)
Message-ID: <36D54F06.2F9770E8@ccis.adisys.com.au>
Date: Thu, 25 Feb 1999 21:24:22 +0800
From: Justin Couch <couch@ccis.adisys.com.au>
Organization: ADI Ltd Systems Group
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: IETF URN WG <urn-ietf@bunyip.com>
Subject: [URN] ANN: Java URI Code v0.5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Justin Couch <couch@ccis.adisys.com.au>
Errors-To: owner-urn-ietf@Bunyip.Com

As previously mentioned....

My implemenation of URI handling code is now available online. This is
version 0.5 and represents the first stable release that potentially
could be used in a production environment. One of the features of this
code is the complete flexibility to allow any sort of resolver (RDS) to
work with it regardless of how the URN is represented. 

The code as it exists is being used in our latest application
development which is a mobile C3I system for special forces and
emergency services markets so it is taking a hammering testing wise. I'm
pretty confident about stability and usablity aspects. 

I've attached the included readme file below. Please d/l and play with
the code. 

-- 
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                     couch@ccis.adisys.com.au
ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

                               Readme.txt

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


                         URN implementation V0.5

                   (c) The Virtual Light Company 1999


This is the first public, widely announced release of the URI code.
As such, there are still many things missing functionality-wise. It
is almost feature complete and is running in a commercial test
environment. I want as much feedback as possible - good, bad or
otherwise.


Licensing
-----------

This code is released under the GNU LGPL. If you wish to redistribute
this code then you must include the license.txt file as is.

The original copy of this code can be found at

http://www.vlc.com.au/~justin/java/urn/uri_0.5.zip

This code makes use of other 3rd party GNU libraries.

GNU Regexp v1.0.6 can be found at:
  http://www.cacas.org/~wes/java/

The GNU LGPL can be found in license.txt or at
http://www.gnu.org/lgpl.html

#include <std_disclaimer.h>


Installing
-----------

Sorry, no JAR file yet. Just extract everything from the zip file (or
leave it in there if you wish) and point the classpath at it. Make sure
that urn.conf and urn_bindings may be found from the classpath as that
is how they are loaded.

Place gun_regexp_106.jar into your classpath

Once you've done this, then you may import the classes under
org.ietf.uri.* and run code with them.

This code makes very heavy use of JDK 1.2 so you need that to be running
this library.

Add your own naming schemes to the urn_bindings file. Comments indicate
where to find the syntax definition.

To generate javadocs run  make_docs.[sh|bat] for your platform. The
unix shell script is untested though!

Philosophy
-----------

The idea of these classes is to completely replace everything in
java.net.
In your application, everywhere that you reference java.net.URL change
that
to org.ietf.uri.URL. There are some other differences that are better
in behaviour, so it is not a completely pluggable replacement.

At the bottom end, a lot more things are configurable and perform the
way
that you expect them to behave. You can put multiple FileNameMaps and
multiple factory implemenations for content and protocol handler (some
parts
not implemented yet). You can fetch the currently set factory.

I've made the best attempt possible at seamless integration with the
java.net classes to ease migration hassles. You can use the same content
handlers and filename maps. Unfortunately you cannot use the protocol
handlers due to a design decision by Sun stopping an external class from
fetching URLConnections. There are public wrapper classes for everything
that it is possible to use.

There are a number of minor and potentially troubling aspects with this
that may not allow full use of the java.net stuff. Read the comments at
the top of JavaNetURLConnectionWrapper for when the code deals with
URNs.

TODO
-----

- Build lots of content handlers! The default one is for text/plain. I
will shortly have image loaders available. Stay tuned.
  o handler for text/uri-list needed.
  o handler for HTML needed

- Protocol handlers for HTTP and FTP are needed. Have some GNU'd code to
work with, but work is incomplete.

- Resolvers:
 o Complete the DNS based resolver based on NetSol code (Problem is that
   its license doesn't allow commercial use which is a pain)
 o JINI based resolver
 o THTTP resolver

- Content handler and ResourceConnection code should have a listener for
a percentage complete type feedback and authentication stuff.

- Complete URL implementation. Currently is mainly delegating directly
to java.net.URL. This needs to be ripped out and replaced with proper
working code (the java.net implementation is very wrong in a couple of
places). Also, the resolving to URN/URC from URL needs to be looked at.


Justin Couch, 25 Feb 1999
couch@ccis.adisys.com.au (work)
justin@vlc.com.au (home)



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id SAA06093 for urn-ietf-out; Wed, 24 Feb 1999 18:53:13 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA06088 for <urn-ietf@services.bunyip.com>; Wed, 24 Feb 1999 18:53:07 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id SAA09881 for urn-ietf@services; Wed, 24 Feb 1999 18:51:25 -0500 (EST)
Received: from fire.adisys.com.au (phoenix.adisys.com.au [203.20.100.67]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA09878 for <urn-ietf@Bunyip.Com>; Wed, 24 Feb 1999 18:51:21 -0500 (EST)
Received: (from nobody@localhost) by fire.adisys.com.au (8.8.8/8.7.3) id HAA29830; Thu, 25 Feb 1999 07:52:03 +0800 (WST)
X-Authentication-Warning: fire.adisys.com.au: nobody set sender to <couch@ccis.adisys.com.au> using -f
Received: from hawk(193.10.80.9) by fire via smap (V2.0) id xma029826; Thu, 25 Feb 99 07:51:56 +0800
Received: from ccis.adisys.com.au (beardie [193.10.80.73]) by ccis.adisys.com.au (8.8.8/8.8.8) with ESMTP id HAA13777; Thu, 25 Feb 1999 07:55:03 +0800 (WST)
Message-ID: <36D483CF.5E65C0E9@ccis.adisys.com.au>
Date: Thu, 25 Feb 1999 06:57:19 +0800
From: Justin Couch <couch@ccis.adisys.com.au>
Organization: ADI Ltd Systems Group
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: michaelm@netsol.com
CC: urn-ietf@bunyip.com
Subject: Re: [URN] Doc on combining multiple RDS types
References: <199902241703.MAA18596@bailey.dscga.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Justin Couch <couch@ccis.adisys.com.au>
Errors-To: owner-urn-ietf@Bunyip.Com

Michael Mealling wrote:

> Cool! I was wondering how you were multiplexing the file and DNS stuff.

Been happening for a while. Works quite nicely. Also underdevelopment is
a JINI version (not anywhere near releasable yet!) BTW - hope you got my
patches for the DNS resolver that used the GNU regexp stuff instead of
the oronic classes.
 
> > The file can be found at
> >
> > http://www.vlc.com.au/~justin/java/urn/multiple_rds.html
> >
> > A second doc dealing with the file based RDS can be found at
> >
> > http://www.vlc.com.au/~justin/java/urn/file_based_resolver.html
[snip] 
> Can you format them as internet-drafts and submit them?

Will do. 

> > BTW - anyone object to me using the package namespace of org.ietf.uri ?
> > I can't release it under my work package struture so that was the next
> > best alternative.... It's all LGPL'd code.
> 
> Hmm... I bet the ietf would have a slight problem with that if it ever
> went into real production. Its probably fine for beta testing but I
> think it should be moved out of that space until the IETF has a policy
> out on such things.

I suspect they would, I'm just out of namespacing options at the moment
:( Maybe I should talk to Sun and get javax.uri or javax.net.uri ????

So, this raises the question - who should I hassle in the IETF
collective about some sort of resolution on this?

-- 
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                     couch@ccis.adisys.com.au
ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id MAA28455 for urn-ietf-out; Wed, 24 Feb 1999 12:10:59 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id MAA28450 for <urn-ietf@services.bunyip.com>; Wed, 24 Feb 1999 12:10:57 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id MAA07930 for urn-ietf@services; Wed, 24 Feb 1999 12:09:23 -0500 (EST)
Received: from bailey.dscga.com (bailey.dscga.com [198.78.9.11]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id MAA07927 for <urn-ietf@Bunyip.Com>; Wed, 24 Feb 1999 12:09:19 -0500 (EST)
Received: (from michael@localhost) by bailey.dscga.com (8.9.1/) id MAA18596; Wed, 24 Feb 1999 12:03:17 -0500 (EST)
From: Michael Mealling <michael@bailey.dscga.com>
Message-Id: <199902241703.MAA18596@bailey.dscga.com>
Subject: Re: [URN] Doc on combining multiple RDS types
In-Reply-To: <36D40E0A.B969CBE9@ccis.adisys.com.au> from Justin Couch at "Feb 24, 99 10:34:50 pm"
To: couch@ccis.adisys.com.au
Date: Wed, 24 Feb 1999 12:03:16 -0500 (EST)
Cc: urn-ietf@bunyip.com
X-Mailer: ELM [version 2.4ME+ PL31H (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Michael Mealling <michael@bailey.dscga.com>
Errors-To: owner-urn-ietf@Bunyip.Com

Justin Couch said this:
> Since Micheal has started the traffic again, I thought it would be
> appropriate to make public mention of some docs that I've been
> generating.
> 
> The main one that I'm seeking comments on is a document dealing with how
> to go about implementing a resolving system that takes into account
> multiple different RDS types (not just DNS). It covers basic impl
> aspects such as how to order them, what requirements the library should
> have and all that stuff. The main architectural influence is from the
> hostname lookup system prevalent on unix boxen (/etc/hosts vs BIND vs
> NIS). 

Cool! I was wondering how you were multiplexing the file and DNS stuff.

> This all comes from my work with the Java implemenation stuff that I've
> been doing (also publically available) that combines a file based
> resolver with Micheal's DNS based code for transportability with mobile
> computers. I expect to have a fully functional release on my website
> tomorrow (v0.4 is currently there but contains many bugs. v0.5 is
> feature complete and almost bug free).
> 
> The file can be found at
> 
> http://www.vlc.com.au/~justin/java/urn/multiple_rds.html
> 
> A second doc dealing with the file based RDS can be found at
> 
> http://www.vlc.com.au/~justin/java/urn/file_based_resolver.html
> 
> If you view the URL minus the file, you'll see a listing of the
> currently available code. Stay tuned for the announcement hopefully
> tomorrow. 

Can you format them as internet-drafts and submit them?

> BTW - anyone object to me using the package namespace of org.ietf.uri ?
> I can't release it under my work package struture so that was the next
> best alternative.... It's all LGPL'd code.

Hmm... I bet the ietf would have a slight problem with that if it ever
went into real production. Its probably fine for beta testing but I
think it should be moved out of that space until the IETF has a policy
out on such things.

-MM

-- 
--------------------------------------------------------------------------------
Michael Mealling	|      Vote Libertarian!       | www.rwhois.net/michael
Sr. Research Engineer   |   www.ga.lp.org/gwinnett     | ICQ#:         14198821
Network Solutions	|          www.lp.org          |  michaelm@netsol.com



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id KAA26639 for urn-ietf-out; Wed, 24 Feb 1999 10:30:34 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id KAA26626 for <urn-ietf@services.bunyip.com>; Wed, 24 Feb 1999 10:30:31 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id KAA07596 for urn-ietf@services; Wed, 24 Feb 1999 10:28:59 -0500 (EST)
Received: from fire.adisys.com.au (phoenix.adisys.com.au [203.20.100.67]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id KAA07593 for <urn-ietf@bunyip.com>; Wed, 24 Feb 1999 10:28:54 -0500 (EST)
Received: (from nobody@localhost) by fire.adisys.com.au (8.8.8/8.7.3) id XAA23569 for <urn-ietf@bunyip.com>; Wed, 24 Feb 1999 23:29:35 +0800 (WST)
X-Authentication-Warning: fire.adisys.com.au: nobody set sender to <couch@ccis.adisys.com.au> using -f
Received: from hawk(193.10.80.9) by fire via smap (V2.0) id xma023565; Wed, 24 Feb 99 23:29:28 +0800
Received: from ccis.adisys.com.au (beardie [193.10.80.73]) by ccis.adisys.com.au (8.8.8/8.8.8) with ESMTP id XAA25256 for <urn-ietf@bunyip.com>; Wed, 24 Feb 1999 23:32:34 +0800 (WST)
Message-ID: <36D40E0A.B969CBE9@ccis.adisys.com.au>
Date: Wed, 24 Feb 1999 22:34:50 +0800
From: Justin Couch <couch@ccis.adisys.com.au>
Organization: ADI Ltd Systems Group
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: IETF URN WG <urn-ietf@bunyip.com>
Subject: [URN] Doc on combining multiple RDS types
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Justin Couch <couch@ccis.adisys.com.au>
Errors-To: owner-urn-ietf@Bunyip.Com

Since Micheal has started the traffic again, I thought it would be
appropriate to make public mention of some docs that I've been
generating.

The main one that I'm seeking comments on is a document dealing with how
to go about implementing a resolving system that takes into account
multiple different RDS types (not just DNS). It covers basic impl
aspects such as how to order them, what requirements the library should
have and all that stuff. The main architectural influence is from the
hostname lookup system prevalent on unix boxen (/etc/hosts vs BIND vs
NIS). 

This all comes from my work with the Java implemenation stuff that I've
been doing (also publically available) that combines a file based
resolver with Micheal's DNS based code for transportability with mobile
computers. I expect to have a fully functional release on my website
tomorrow (v0.4 is currently there but contains many bugs. v0.5 is
feature complete and almost bug free).

The file can be found at

http://www.vlc.com.au/~justin/java/urn/multiple_rds.html

A second doc dealing with the file based RDS can be found at

http://www.vlc.com.au/~justin/java/urn/file_based_resolver.html

If you view the URL minus the file, you'll see a listing of the
currently available code. Stay tuned for the announcement hopefully
tomorrow. 

BTW - anyone object to me using the package namespace of org.ietf.uri ?
I can't release it under my work package struture so that was the next
best alternative.... It's all LGPL'd code.

-- 
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                     couch@ccis.adisys.com.au
ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id KAA26422 for urn-ietf-out; Wed, 24 Feb 1999 10:17:47 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id KAA26414 for <urn-ietf@services.bunyip.com>; Wed, 24 Feb 1999 10:17:45 -0500 (EST)
Received: from buzz.Bunyip.Com (buzz.Bunyip.Com [209.41.144.8]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id KAA07561 for <urn-ietf@services>; Wed, 24 Feb 1999 10:16:12 -0500 (EST)
Received: from localhost (delphys@localhost) by buzz.Bunyip.Com (8.6.9/8.6.10) with SMTP id KAA12250 for <urn-ietf@services>; Wed, 24 Feb 1999 10:14:08 -0500
X-Authentication-Warning: buzz.Bunyip.Com: delphys owned process doing -bs
X-Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by mocha.bunyip.com (8.8.5/8.8.5) with SMTP id JAA07455 for <urn-ietf@bunyip.com>; Wed, 24 Feb 1999 09:41:44 -0500 (EST)
X-Received: (qmail 22726 invoked from network); 24 Feb 1999 14:43:14 -0000
X-Received: from unknown (HELO sub.sonic.net) (208.201.224.8) by marine.sonic.net with SMTP; 24 Feb 1999 14:43:14 -0000
X-Received: from bolt.sonic.net (tallen@bolt.sonic.net [208.201.224.36]) by sub.sonic.net (8.8.8/8.8.5) with ESMTP id GAA17788 for <urn-ietf@bunyip.com>; Wed, 24 Feb 1999 06:43:14 -0800
X-envelope-info: <tallen@bolt.sonic.net>
X-Received: (from tallen@localhost) by bolt.sonic.net (8.8.8/8.7.3) id GAA25618 for urn-ietf@bunyip.com; Wed, 24 Feb 1999 06:43:14 -0800
Date: Wed, 24 Feb 1999 06:43:14 -0800
From: Terry Allen <tallen@sonic.net>
Message-Id: <199902241443.GAA25618@bolt.sonic.net>
To: urn-ietf@bunyip.com
Subject: Re: [URN] question about version and manifestation
ReSent-Date: Wed, 24 Feb 1999 10:14:02 -0500 (EST)
ReSent-From: David Holmes <delphys@Bunyip.Com>
ReSent-To: urn-ietf@services.bunyip.com
ReSent-Message-ID: <Pine.SUN.3.95.990224101402.12167F@buzz.Bunyip.Com>
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Terry Allen <tallen@sonic.net>
Errors-To: owner-urn-ietf@Bunyip.Com

Michael Mealling wrote:
| lislee said this:
| > I have one question.
| > Anybody tell me about the question..
| > 
| > IF:
| > There is one resource(e.g. personal homepage).
| > It's URN is <urn:yonsei:lis.99-1>
| > When the author revised the homepage,
| > I wonder whether it is given new URN or not?
| 
| It depends on the rules of the 'yonsei' namespace. If they decide
| that each revision requires a new URN then that applies, if not then
| it is probably left up to the author.
 ...
| It depends on the namespace definition. If _I_ were designing a namespace
| then I would probably specify that each format type and all revisions
| fell under the same URN.
| 
| > And when the document is edited, is new URN needed?
| > If it is, why?
| 
| Again, it depends on the namespace. In my own opinion new revisions would
| still fall under the same URN. In the case of a revision control system
| I suspect each revision would also get a new URN...
 ...
| I hope I've helped. If not please feel free to ask more questions. 
| The mailing list has been kind of slow recently so some educational
| discussion would be a nice change...

Michael's response is quite right:  it's up to the designer of
the name space.  Let me contribute a contrasting domain: e-commerce.
For a name space for URNs identifying invoices, purchase orders,
and so on, I'd want to have a rule that URNs are assigned only once,
so that I didn't end up authorizing payment on an invoice (identified
by URN) that had been edited after I examined it.  On the other hand,
I'd assign the URN only to the XML representation of the document,
without caring about various renditions of it (on screen, on paper).

So it depends on what you want to do.


regards, Terry

Terry Allen                             Commerce One, Inc.
Business Language Designer		1600 Riviera Ave., Suite 200
Advanced Technology Group               Walnut Creek, Calif., 94596
tallen[at]sonic.net



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id BAA19416 for urn-ietf-out; Wed, 24 Feb 1999 01:37:19 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id BAA19411 for <urn-ietf@services.bunyip.com>; Wed, 24 Feb 1999 01:37:17 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id BAA06357 for urn-ietf@services; Wed, 24 Feb 1999 01:35:56 -0500 (EST)
Received: from bailey.dscga.com (bailey.dscga.com [198.78.9.11]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id BAA06354 for <urn-ietf@Bunyip.Com>; Wed, 24 Feb 1999 01:35:52 -0500 (EST)
Received: (from michael@localhost) by bailey.dscga.com (8.9.1/) id BAA17841; Wed, 24 Feb 1999 01:29:40 -0500 (EST)
From: Michael Mealling <michael@bailey.dscga.com>
Message-Id: <199902240629.BAA17841@bailey.dscga.com>
Subject: Re: [URN] question about version and manifestation
In-Reply-To: <36D38F60.1D2BA0C5@lis.yonsei.ac.kr> from lislee at "Feb 24, 99 02:34:24 pm"
To: lislee@lis.yonsei.ac.kr
Date: Wed, 24 Feb 1999 01:29:40 -0500 (EST)
Cc: urn-ietf@bunyip.com
X-Mailer: ELM [version 2.4ME+ PL31H (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Michael Mealling <michael@bailey.dscga.com>
Errors-To: owner-urn-ietf@Bunyip.Com

lislee said this:
> I have one question.
> Anybody tell me about the question..
> 
> IF:
> There is one resource(e.g. personal homepage).
> It's URN is <urn:yonsei:lis.99-1>
> When the author revised the homepage,
> I wonder whether it is given new URN or not?

It depends on the rules of the 'yonsei' namespace. If they decide
that each revision requires a new URN then that applies, if not then
it is probably left up to the author.

> I think copies of the same document shall all use the same URN.
> (this document has one URN but several URLs)

If that is the policy the 'yonsei' namespace has, then yes...

> When versions of one document are different(e.g. a text file in MS Word
> and HTML), but their intelligent contents are same perfectly, should
> they have their own URN?
> If they should, why?

It depends on the namespace definition. If _I_ were designing a namespace
then I would probably specify that each format type and all revisions
fell under the same URN.

> And when the document is edited, is new URN needed?
> If it is, why?

Again, it depends on the namespace. In my own opinion new revisions would
still fall under the same URN. In the case of a revision control system
I suspect each revision would also get a new URN...
> 
> When the author added new contents, I think, it shoud have new URN.
> When the author fixed to typing error, is new URN needed?

We started out asking questions like that and realised that the answer
depended mostly on the authors own view of the world and thus no one
from the outside could dictate a policy decision like that. Thus we
came up with the concept of the Namespace Identifier which is the part
of the URN that defines which sets of rules that subset of the 
namespace will follow.

For example, the ISBN namespace follows rules setup by publishers. In 
their world different printings and editions are very important things to
keep track of. In many situations they assign a new ISBN number even 
if they are simply printing a new set of the same thing over again.
In their case, each new edition gets a new ISBN number and thus a new
URN. Their URNs would look something like this:
	URN:ISBN:0-672-52383-3

Now, in the case of something like a URN namespace defined specifically
for web pages on the net, the decision to create a new URN or stick with
the old one is really left up to the author of the web page. It is up
to the author to determine if the web page should be considered the same
by its readers. 

I hope I've helped. If not please feel free to ask more questions. 
The mailing list has been kind of slow recently so some educational
discussion would be a nice change...

-MM


-- 
--------------------------------------------------------------------------------
Michael Mealling	|      Vote Libertarian!       | www.rwhois.net/michael
Sr. Research Engineer   |   www.ga.lp.org/gwinnett     | ICQ#:         14198821
Network Solutions	|          www.lp.org          |  michaelm@netsol.com



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id AAA18567 for urn-ietf-out; Wed, 24 Feb 1999 00:36:13 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id AAA18562 for <urn-ietf@services.bunyip.com>; Wed, 24 Feb 1999 00:36:11 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id AAA05966 for urn-ietf@services; Wed, 24 Feb 1999 00:34:52 -0500 (EST)
Received: from lis.yonsei.ac.kr (lis.yonsei.ac.kr [165.132.148.111]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id AAA05963 for <urn-ietf@bunyip.com>; Wed, 24 Feb 1999 00:34:49 -0500 (EST)
Received: from lis.yonsei.ac.kr ([165.132.148.191]) by lis.yonsei.ac.kr (8.9.1a-H1/8.9.1) with ESMTP id OAA12818 for <urn-ietf@bunyip.com>; Wed, 24 Feb 1999 14:36:01 +0900 (KST)
Message-ID: <36D38F60.1D2BA0C5@lis.yonsei.ac.kr>
Date: Wed, 24 Feb 1999 14:34:24 +0900
From: lislee <lislee@lis.yonsei.ac.kr>
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
To: urn-ietf@bunyip.com
Subject: [URN] question about version and manifestation
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: lislee <lislee@lis.yonsei.ac.kr>
Errors-To: owner-urn-ietf@Bunyip.Com

I am a student interested in URN.

I have one question.
Anybody tell me about the question..

IF:
There is one resource(e.g. personal homepage).
It's URN is <urn:yonsei:lis.99-1>
When the author revised the homepage,
I wonder whether it is given new URN or not?

I think copies of the same document shall all use the same URN.
(this document has one URN but several URLs)

When versions of one document are different(e.g. a text file in MS Word
and HTML), but their intelligent contents are same perfectly, should
they have their own URN?
If they should, why?

And when the document is edited, is new URN needed?
If it is, why?

When the author added new contents, I think, it shoud have new URN.
When the author fixed to typing error, is new URN needed?

Please reply to me.

I'll wait for your reply.






Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id OAA09748 for urn-ietf-out; Tue, 23 Feb 1999 14:58:18 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id OAA09743 for <urn-ietf@services.bunyip.com>; Tue, 23 Feb 1999 14:58:15 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id OAA04529 for urn-ietf@services; Tue, 23 Feb 1999 14:57:08 -0500 (EST)
Received: from bailey.dscga.com (bailey.dscga.com [198.78.9.11]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id OAA04526 for <urn-ietf@bunyip.com>; Tue, 23 Feb 1999 14:57:05 -0500 (EST)
Received: (from michael@localhost) by bailey.dscga.com (8.9.1/) id OAA15569 for urn-ietf@bunyip.com; Tue, 23 Feb 1999 14:50:46 -0500 (EST)
From: Michael Mealling <michael@bailey.dscga.com>
Message-Id: <199902231950.OAA15569@bailey.dscga.com>
Subject: [URN] comments needed (this means you! ;-)
To: urn-ietf@bunyip.com
Date: Tue, 23 Feb 1999 14:50:46 -0500 (EST)
X-Mailer: ELM [version 2.4ME+ PL31H (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Michael Mealling <michael@bailey.dscga.com>
Errors-To: owner-urn-ietf@Bunyip.Com

Hi folx,
  Just to clarify things, I saw no comments on draft-urn-dns-rds-00.txt and
thus I'm considering there to be concensus around this document as it stands.
I'm going to make one more wordsmithing pass and then I'm going to 
consider it done. Remember, both draft-urn-dns-rds-00.txt and
draft-urn-naptr-rr-01.txt are intended to be updated versions of RFC2168
that are intended to be Standards Track.

-MM

-- 
--------------------------------------------------------------------------------
Michael Mealling	|      Vote Libertarian!       | www.rwhois.net/michael
Sr. Research Engineer   |   www.ga.lp.org/gwinnett     | ICQ#:         14198821
Network Solutions	|          www.lp.org          |  michaelm@netsol.com



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id SAA24942 for urn-ietf-out; Mon, 22 Feb 1999 18:31:53 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA24937 for <urn-ietf@services.bunyip.com>; Mon, 22 Feb 1999 18:31:50 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id SAA01637 for urn-ietf@services; Mon, 22 Feb 1999 18:31:09 -0500 (EST)
Received: from buzz.Bunyip.Com (buzz.Bunyip.Com [209.41.144.8]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA01634; Mon, 22 Feb 1999 18:31:05 -0500 (EST)
Received: from localhost (leslie@localhost) by buzz.Bunyip.Com (8.6.9/8.6.10) with SMTP id SAA09930; Mon, 22 Feb 1999 18:29:15 -0500
X-Authentication-Warning: buzz.Bunyip.Com: leslie owned process doing -bs
Date: Mon, 22 Feb 1999 18:29:15 -0500 (EST)
From: Leslie Daigle <leslie@Bunyip.Com>
To: Michael Mealling <michael@bailey.dscga.com>
cc: urn-ietf@bunyip.com
Subject: Re: [URN] new draft-urn-naptr-rr-01.txt
In-Reply-To: <199902222227.RAA10936@bailey.dscga.com>
Message-ID: <Pine.SUN.3.95.990222182428.9896F-100000@buzz.Bunyip.Com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Leslie Daigle <leslie@Bunyip.Com>
Errors-To: owner-urn-ietf@Bunyip.Com

Hi all,

Let me apologize for the short turn-around for comments -- Michael had
sent this out last week, but we had a server crash & then some mailing
list problems that delayed its circulation.

My apologies to all for the inconvenience.

Leslie.

On Mon, 22 Feb 1999, Michael Mealling wrote:
>   This is a preliminary draft of the NAPTR RR document. This is the one
> that's intended for Standards Track. I'm going to take comments up until
> Wednesday the 24th. The draft deadline is the 26th (that Friday). I hope to
> have comments integrated and the draft submitted by Thursday. 


------------------------------------------------------------------------------

  "Never confuse                               Leslie Daigle
     an appreciation of the simple                              
              for                              Bunyip Information Systems Inc.
     a lack of understanding of the complex."  +1 514 285 0088
                  -- ThinkingCat               leslie@bunyip.com
 
------------------------------------------------------------------------------



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id SAA24796 for urn-ietf-out; Mon, 22 Feb 1999 18:18:58 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA24790 for <urn-ietf@services.bunyip.com>; Mon, 22 Feb 1999 18:18:55 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id SAA01563 for urn-ietf@services; Mon, 22 Feb 1999 18:18:13 -0500 (EST)
Received: from bailey.dscga.com (bailey.dscga.com [198.78.9.11]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA01558 for <urn-ietf@bunyip.com>; Mon, 22 Feb 1999 18:17:58 -0500 (EST)
Received: (from michael@localhost) by bailey.dscga.com (8.9.1/) id SAA11439 for urn-ietf@bunyip.com; Mon, 22 Feb 1999 18:11:18 -0500 (EST)
From: Michael Mealling <michael@bailey.dscga.com>
Message-Id: <199902222311.SAA11439@bailey.dscga.com>
Subject: [URN] draft-urn-naptr-rr-01.txt
To: urn-ietf@bunyip.com
Date: Mon, 22 Feb 1999 18:11:17 -0500 (EST)
X-Mailer: ELM [version 2.4ME+ PL31H (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mocha.bunyip.com id SAA01561
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Michael Mealling <michael@bailey.dscga.com>
Errors-To: owner-urn-ietf@Bunyip.Com

Network Working Group                                     M. Mealling
draft-urn-naptr-rr-01.txt                     Network Solutions, Inc.
Category: Standards Track			            R. Daniel
Expires: August, 1999                                DATAFUSION, Inc.
                                                             Feb 1999


      The Naming Authority Pointer (NAPTR) DNS Resource Record

Status of this Memo
===================

     This document is an Internet-Draft and is in full conformance
     with all provisions of Section 10 of RFC2026.

     Internet-Drafts are working documents of the Internet Engineering
     Task Force (IETF), its areas, and its working groups.  Note that
     other groups may also distribute working documents as
     Internet-Drafts.

     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."

     The list of current Internet-Drafts can be accessed at
     http://www.ietf.org/ietf/1id-abstracts.txt

     The list of Internet-Draft Shadow Directories can be accessed at
     http://www.ietf.org/shadow.html.

Abstract:
=========

   This document describes a DNS Resource Record which specifies
   a rewrite rule that, when applied to an existing string
   will produce a new domain. Reasons for rewriting a domain
   vary from URN Resource Discovery Systems to moving out of date
   services to new domains.

   This document updates the portions of RFC2168 specifically
   dealing with the definition of the NAPTR record.

Introduction:
=============

   This RR was originally produced by the URN [3] Working Group as
   a way to encode rule-sets in DNS so that the delegated 
   sections of a URI could be decomposed in such a way that they
   could be changed and re-delegated over time. The result was
   a Resource Record that included a regular expression which would
   be used by a client program to rewrite a string into a domain-name.
   Regular expressions were chosen for their compactness to
   expressivity ratio allowing for a great deal of information
   to be encoded in a rather small DNS packet.

   The function of rewriting a string according to the rules in a 
   record has usefullness in several different applications. This
   document defines the basic assumptions that all of those applications
   must adhere to. It does not define the reasons for why the rewrite
   is used, what the expected outcomes are, or what they are used
   for. Those are specified by applications that define how they use
   the NAPTR record and algorithms within their contexts.

   Flags and other fields are also specified in the RR to control the
   rewrite procedure in various ways or to provide information on how
   to communicate with the host at the domain-name that was the result
   of the rewrite. 

   The final result is a RR that has several fields which interact
   in a non-trivial but implementable way. This document specifies
   those fields and their values.

      The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
      NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED",  "MAY", and
      "OPTIONAL" in this document are to be interpreted as described in
      RFC 2119.

NAPTR RR Format
===============

   The format of the NAPTR RR is given below. The DNS type code for
   NAPTR is 35. [1] [2]

   Domain TTL Class Order Preference Flags Service Regexp Replacement

   Domain
          The domain name this resource record refers to. This is the
          'key' for this entry in the rule database. This value will
          either be the first well known key (<something>.uri.net for 
          example) or a new key that is the output of a replacement or 
          regexp rewrite. Beyond this it has the standard DNS
          requirements. [1]

   TTL
          Standard DNS meaning. [1]

   Class
          Standard DNS meaning [1]

   Order
          A 16-bit unsigned integer specifying the order in which 
          the NAPTR records MUST be processed to ensure the correct 
          ordering of rules. Low numbers are processed before high 
          numbers, and once a NAPTR is found whose rule "matches" 
          the target, the client MUST NOT consider any NAPTRs with 
          a higher value for order (except as noted below for the 
          Flags field).

   Preference
          A 16-bit unsigned integer which specifies the order in 
          which NAPTR records with equal "order" values SHOULD be 
          processed, low numbers being processed before high numbers.  
          This is similar to the preference field in an MX record, and 
          is used so domain administrators can direct clients towards 
          more capable hosts or lighter weight protocols. A client MAY 
          look at records with higher preference values if it has a 
          good reason to do so such as no understanding the preferred 
          protocol or service.

   Flags
          A <character-string> containing flags to control aspects of 
          the rewriting and interpretation of the fields in the 
          record. Flags are single characters from the set [A-Z0-9]. 
          The case of the alphabetic characters is not significant.

          At this time only four flags, "S", "A", "U", and "P", are  
          defined. The "S", "A" and "U" flags denote a terminal lookup. 
          This means that this NAPTR record is the last one and that the
          flag determines what the next stage should be.  The "S" flag
          means that the next lookup should be for SRV [4] records. 
          "A" means that the next lookup should be for A records. 
          The "U" flag means that the next step is not a DNS lookup
          but that the output of the Regexp field is a URL [10].

          The "P" flag says that the remainder of the application side 
          algorithm shall be carried out in a Protocol-specific fashion. 
          The new set of rules is identified by the Protocol specified 
          in the Services field.  The record that contains the 'P' 
          flag is the last record that is interpreted by the rules 
          specified in this document.  The new rules are dependent 
          on the application for which they are being used and the 
          protocol specified. For example, if the application is a 
          URI RDS and the protocol is WIRE then the new set of rules 
          are governed by the algorithms surrounding the WIRE HTTP 
          specification and not this document. 

          The remaining alphabetic flags are reserved for future 
          versions of the NAPTR specification. The numeric flags
          may be used for local experimentation. The S, A, U and P flags
          are all mutually exclusive, and resolution libraries MAY
          signal an error if more than one is given. (Experimental code
          and code for assisting in the creation of NAPTRs would be more
          likely to signal such an error than a client such as a
          browser). We anticipate that multiple flags will be allowed in
          the future, so implementers MUST NOT assume that the flags
          field can only contain 0 or 1 characters. Finally, if a client
          encounters a record with an unknown flag, it MUST ignore it
          and move to the next record. This test takes precedence even
          over the "order" field. Since flags can control the
          interpretation placed on fields, a novel flag might change the
          interpretation of the regexp and/or replacement fields such
          that it is impossible to determine if a record matched a 
          given target.

	  The "S", "A", and "U"  flags are called 'terminal' flags 
          since they halt any looping rewrite algorithms. If those 
          flags are not present then clients may assume that another 
          NAPTR RR exists at the domain-name produced by the current 
          rewrite rule. Since the "P" flag specifies a new algorithm, 
          it may or may not be 'terminal', thus the client cannot 
          assume that another NAPTR exists since this case is 
          determined elsewhere.

          DNS servers MAY interpret these flags and values and use
          that information to include appropriate SRV and A records
          in the additional information portion of the DNS packet.
          Clients are encouraged to check for additional information
          but are no required to do so.

   Service
          Specifies the service(s) available down this rewrite 
          path. It may also specify the particular protocol that
          is used to talk with a service. A protocol MUST be specified
          if the flags field states that the NAPTR is terminal. If a
          protocol is specified, but the flags field does not state that
          the NAPTR is terminal, the next lookup MUST be for a NAPTR.
          The client MAY choose not to perform the next lookup if the
          protocol is unknown, but that behavior MUST NOT be relied
          upon.

          The service field may take any of the values below (using the
          Augmented BNF of RFC 2234[5]):

           service_field = [ [protocol] *("+" rs)]
           protocol      = ALPHA *31ALPHANUM
           rs            = ALPHA *31ALPHANUM
           ; The protocol and rs fields are limited to 32
           ; characters and must start with an alphabetic.

          i.e. an optional protocol specification followed by 0 or more
          resolution services. Each resolution service is indicated by
          an initial '+' character.

          Note that the empty string is also a valid service field. This
          will typically be seen at the beginning of a series of rules, 
          when it is impossible to know what services and protocols 
          will be offered by a particular service.

          The actual format of the service request and response will be
          determined by the resolution protocol, and is the subject for
          other documents. Protocols need not offer all services. The 
          labels for service requests shall be formed from the set of 
          characters [A-Z0-9]. The case of the alphabetic characters is 
          not significant.

          The list of "valid" protocols for any given NAPTR record is 
          any protocol that implements some or all of the services 
          defined for a NAPTR application.  Currently, THTTP [6] is 
          the only protocol that is known to make that claim at the time
          of publication. Any other protocol that is to be used must 
          have documentation specifying:
               * how it implements the services of the application
               * how it is to appear in the NAPTR record (i.e., the 
                 string id of the protocol)

          The list of valid Resolution Services is defined by the
          documents that specify individual NAPTR based applications.
          One example is RFC-2483, "Resolution of Uniform Resource
          Identifiers using the Domain Name System" [7], from which
          this document was extracted.

          It is worth noting that the interpretation of this field
          is subject to being changed by new flags, and that the current
          specification is oriented towards telling clients how to 
          talk with a URN resolver.

   Regexp
          A STRING containing a substitution expression that is applied
          to the original string held by the client in order to 
          construct the next domain name to lookup. The grammar of the 
          substitution expression is given in the next section.

          The regular expressions MUST NOT be used in a cumulative 
          fashion, that is, they should only be applied to the original
          string held by the client, never to the domain name produced
          by a previous NAPTR rewrite. The latter is tempting in some
          applications but experience has shown such use to be 
          extremely fault sensitive, very error prone, and extremely
          difficult to debug.

   Replacement
          The next NAME to query for NAPTR, SRV, or A records depending
          on the value of the flags field. This MUST be a fully qualified
          domain-name. Unless and until permitted by future standards 
          action, name compression is not to be used for this field.

Substitution Expression Grammar:
================================

   The content of the regexp field is a substitution expression. True
   sed(1) substitution expressions are not appropriate for use in this
   application for a variety of reasons, therefore the contents of the
   regexp field MUST follow the grammar below:

subst_expr   = delim-char  ere  delim-char  repl  delim-char  *flags
delim-char   = "/" / "!" / ... <Any non-digit or non-flag character 
               other than backslash '\'. All occurances of a delim_char
               in a subst_expr must be the same character.>
ere          = POSIX Extended Regular Expression (see [6], section
               2.8.4)
repl         = 1 * ( OCTET /  backref )
backref      = "\" 1POS_DIGIT
flags        = "i"
POS_DIGIT    = %x31-39                 ; 0 is not an allowed backref

   The result of applying the substitution expression to the original
   URI MUST result in a string that obeys the syntax for DNS host names
   [7]. Since it is possible for the regexp field to be improperly
   specified, such that a non-conforming host name can be constructed,
   client software SHOULD verify that the result is a legal host name
   before making queries on it.

   Backref expressions in the repl portion of the substitution
   expression are replaced by the (possibly empty) string of characters
   enclosed by '(' and ')' in the ERE portion of the substitution
   expression. N is a single digit from 1 through 9, inclusive. It
   specifies the N'th backref expression, the one that begins with the
   N'th '(' and continues to the matching ')'.  For example, the ERE

                      (A(B(C)DE)(F)G)

   has backref expressions:

                      \1  = ABCDEFG
                      \2  = BCDE
                      \3  = C
                      \4  = F
                      \5..\9  = error - no matching subexpression

   The "i" flag indicates that the ERE matching SHALL be performed in a
   case-insensitive fashion. Furthermore, any backref replacements MAY
   be normalized to lower case when the "i" flag is given. 

   The first character in the substitution expression shall be used as
   the character that delimits the components of the substitution
   expression.  There must be exactly three non-escaped occurrences of
   the delimiter character in a substitution expression. Since escaped
   occurrences of the delimiter character will be interpreted as
   occurrences of that character, digits MUST NOT be used as delimiters.
   Backrefs would be confused with literal digits were this allowed.
   Similarly, if flags are specified in the substitution expression, the
   delimiter character must not also be a flag character.

The Basic NAPTR Algorithm
============================================

   The behavior and meaning of the flags and services assume an 
   algorithm where the output of one rewrite is a new key that points
   to another rule. This looping algorithm allows NAPTR records to 
   incrementally specify a complete rule. These incremental rules
   can be delegated which allows other entities to specify rules so
   that one entity does not need to understand _all_ rules.

   The algorithm starts with a string and some known key (domain). 
   NAPTR records for this key are retrieved, those with unknown
   Flags or inappropriate Services are discarded and the remaining
   records are sorted by their Order field. Within each value of Order,
   the records are further sorted by the Preferences field.

   The records are examined in sorted order until a matching record
   is found. A record is considered a match iff:

   1) it has a Replacement field value instead of a Regexp field value.

   or 

   2) the Regexp field matches the string held by the client.

   The first match MUST be the match that is used. Once a match is 
   found, the Services field is examined for whether or not this rule 
   advances toward the desired result. If so, then the rule is 
   applied to the target string. If not, the process halts. The domain
   that results from the regular expression is then used as the 
   domain of the next loop through the NAPTR algorithm. Note that
   the same target string is used throughout the algorithm.

   This looping is extremely important since it is the method by 
   which complex rules are broken down into manageable delegated chunks.
   The flags fields simply determine at which point the looping should 
   stop (or other specialized behavior).

   Since flags are valid at any level of the algorithm, the degenerative
   case is to never loop but to lookup the NATPR and then stop. In
   many specialized cases this is all that is needed. Implementors 
   should be aware that the degenerative case should not become the 
   common case.

Application Specifications
==========================

   It should be noted that the NAPTR algorithm is the basic assumption
   about how NAPTR works. The reasons for the rewrite and the expected
   output and its use are specified by documents that define what
   applicatiions the NAPTR record and algorithm are used for. Any
   document that defines such an application must define the following:

         * The first known key or how to build it 
         * The valid Services and Protocols
         * What the expected use is for the output of the last rewrite
         * The validity and/or behavior of any 'P' flag protocols.
         * The general semantics surrounding why and how NAPTR and its
           algorithm are being used.

   Currently the only example of such a document is RFCXXXX, 
   "Resolution of Uniform Resource Identifiers using the Domain Name
   System" [7].  

Examples
============================================

   NOTE: These are examples only. They are taken from ongoing work and
   may not represent the end result of that work. They are here for
   pedagogical reasons only.

Example 1
---------

   NAPTR was originally specified for use with the a Uniform Resource
   Name Resolver Discovery System. This example details how a 
   particular URN would use the NAPTR record to find a resolver
   service.

   Consider a URN namespace based on MIME Content-Ids. The URN might
   look like this:

                 urn:cid:199606121851.1@mordred.gatech.edu

   (Note that this example is chosen for pedagogical purposes, and does
   not conform to the CID URL scheme.)

   The first step in the resolution process is to find out about the CID
   namespace. The namespace identifier [3], cid, is extracted from the 
   URN, prepended to urn.net. 'cid.urn.net' then becomes the first 
   'known' key in the NAPTR algorithm. the NAPTR for cid.urn.net looked 
   up and returns a record:

   cid.urn.net
   ;;       order pref flags service        regexp           replacement
   IN NAPTR 100   10   ""  ""  "/urn:cid:.+@([^\.]+\.)(.*)$/\2/i"    .

   We have only one NAPTR response, so ordering the responses is not a
   problem.  The replacement field is empty, so we check the regexp
   field and use the pattern provided there. We apply that regexp to the
   entire URN to see if it matches, which it does.  The \2 part of the
   substitution expression returns the string "gatech.edu". Since the
   flags field does not contain "s" or "a", the lookup is not terminal
   and our next probe to DNS is for more NAPTR records where the new
   domain is 'gatech.edu' and the string is the same string as before.

   Note that the rule does not extract the full domain name from the
   CID, instead it assumes the CID comes from a host and extracts its
   domain.  While all hosts, such as mordred, could have their very own
   NAPTR, maintaining those records for all the machines at a site as
   large as Georgia Tech would be an intolerable burden. Wildcards are
   not appropriate here since they only return results when there is no
   exactly matching names already in the system.

   The record returned from the query on "gatech.edu" might look like:

   gatech.edu IN NAPTR
   ;;       order pref flags service           regexp  replacement
   IN NAPTR 100  50  "s"  "z3950+N2L+N2C"     ""    z3950.tcp.gatech.edu
   IN NAPTR 100  50  "s"  "rcds+N2C"          ""    rcds.udp.gatech.edu
   IN NAPTR 100  50  "s"  "http+N2L+N2C+N2R"  ""    http.tcp.gatech.edu

   Continuing with our example, we note that the values of the order and
   preference fields are equal in all records, so the client is free to
   pick any record. The flags field tells us that these are the last
   NAPTR patterns we should see, and after the rewrite (a simple
   replacement in this case) we should look up SRV records to get
   information on the hosts that can provide the necessary service.

   Assuming we prefer the Z39.50 protocol, our lookup might return:

   ;;                        Pref Weight   Port Target
   z3950.tcp.gatech.edu IN SRV 0    0      1000 z3950.gatech.edu
                        IN SRV 0    0      1000 z3950.cc.gatech.edu
                        IN SRV 0    0      1000 z3950.uga.edu

   telling us three hosts that could actually do the resolution, and
   giving us the port we should use to talk to their Z39.50 server.

   Recall that the regular expression used \2 to extract a domain name
   from the CID, and \. for matching the literal '.' characters
   separating the domain name components. Since '\' is the escape
   character, literal occurances of a backslash must be escaped by
   another backslash. For the case of the cid.urn.net record above, the
   regular expression entered into the zone file should be
   "/urn:cid:.+@([^\\.]+\\.)(.*)$/\\2/i".  When the client code actually
   receives the record, the pattern will have been converted to
   "/urn:cid:.+@([^.]+\.)(.*)$/\2/i".

Example 2
---------

   Even if URN systems were in place now, there would still be a
   tremendous number of URLs.  It should be possible to develop a URN
   resolution system that can also provide location independence for
   those URLs.  This is related to the requirement that URNs be able to
   grandfather in names from other naming systems, such as ISO Formal
   Public Identifiers, Library of Congress Call Numbers, ISBNs, ISSNs,
   etc.

   The NAPTR RR could also be used for URLs that have already been
   assigned.  Assume we have the URL for a very popular piece of
   software that the publisher wishes to mirror at multiple sites around
   the world:

        http://www.foo.com/software/latest-beta.exe

   We extract the prefix, "http", and lookup NAPTR records for
   http.uri.net. This might return a record of the form

   http.uri.net IN NAPTR
   ;;  order   pref flags service      regexp             replacement
        100     90   ""      ""   "!http://([^/:]+)!\1!i"       .

   This expression returns everything after the first double slash and
   before the next slash or colon. (We use the '!' character to delimit
   the parts of the substitution expression. Otherwise we would have to
   use backslashes to escape the forward slashes, and would have a
   regexp in the zone file that looked like
   "/http:\\/\\/([^\\/:]+)/\\1/i".).

   Applying this pattern to the URL extracts "www.foo.com". Looking up
   NAPTR records for that might return:

   www.foo.com
   ;;       order pref flags   service  regexp     replacement
    IN NAPTR 100  100  "s"   "http+L2R"   ""    http.tcp.foo.com
    IN NAPTR 100  100  "s"   "ftp+L2R"    ""    ftp.tcp.foo.com

   Looking up SRV records for http.tcp.foo.com would return information
   on the hosts that foo.com has designated to be its mirror sites. The
   client can then pick one for the user.

Example 3
---------

   A non-URI example is where a NAPTR is used to specify the available
   mappings from a domain-name to telephony based endpoints. In this
   example the regular expression field is not used since the important
   information is encoded within the services field.

   0.0.0.4.6.2.6.5.8.6.4.e164.int.
       IN NAPTR 100 10 "s" "h323call+N2R" "" tele2.se.
       IN NAPTR 102 10 "s" "potscall+N2R" "" tele2.se.
       IN NAPTR 102 10 "s" "smtp+N2R"     "" tele2.se.

   In these examples the domain is an encoded E164 telephone number.
   The services field specifies that, for this particular telephone 
   number, the services that are available are h323call, potscall 
   and smtp; and that "tele2.se" is the target that provides those
   services. Since the flag is "s" then the next step should be a
   query for an SRV record which will contain specific information 
   about the "tele2.se" domain.

DNS Packet Format
=================

   The packet format for the NAPTR record is as follows

                                    1  1  1  1  1  1
      0  1  2  3  4  5  6  7  8  9  0  1  2  3  4  5
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    |                     ORDER                     |
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    |                   PREFERENCE                  |
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                     FLAGS                     /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                   SERVICES                    /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                    REGEXP                     /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                  REPLACEMENT                  /
    /                                               /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

   where:

   FLAGS         A <character-string> which contains various flags.

   SERVICES      A <character-string> which contains protocol
                 and service identifiers.

   REGEXP        A <character-string> which contains a regular 
                 expression.

   REPLACEMENT   A <domain-name> which specifies the new value in
                 the case where the regular expression is a simple
                 replacement operation.

Master File Format
==================

   The master file format follows the standard rules in RFC-1035 [1]. 
   Order and preference, being 16-bit unsigned integers, shall be 
   an integer between 0 and 65535. The Flags and Services and Regexp 
   fields are all <character-string>s that cannot contain spaces and 
   thus can be included in their above specified form. While the 
   Regexp field is also a <character-string> it can contain 
   numerous backslashes and thus should be treated with care. 

Advice to domain administrators
===============================

   Beware of regular expressions. Not only are they a pain to get
   correct on their own, but there is the previously mentioned
   interaction with DNS. Any backslashes in a regexp must be entered
   twice in a zone file in order to appear once in a query response.
   More seriously, the need for double backslashes has probably not been
   tested by all implementors of DNS servers. 

   The "a" flag allows the next lookup to be for A records rather than
   SRV records. Since there is no place for a port specification in the
   NAPTR record, when the "A" flag is used the specified protocol must
   be running on its default port.

   The URN Syntax draft defines a canonical form for each URN, which
   requires %encoding characters outside a limited repertoire. The
   regular expressions MUST be written to operate on that canonical
   form. Since international character sets will end up with extensive
   use of %encoded characters, regular expressions operating on them
   will be essentially impossible to read or write by hand.

Notes:
======

     -  A client MUST process multiple NAPTR records in the order
        specified by the "order" field, it MUST NOT simply use the first
        record that provides a known protocol and service combination.
     -  When multiple RRs have the same "order", the client should use
        the value of the preference field to select the next NAPTR to
        consider. However, because of preferred protocols or services,
        estimates of network distance and bandwidth, etc. clients may
        use different criteria to sort the records.
     -  If the lookup after a rewrite fails, clients are strongly
        encouraged to report a failure, rather than backing up to pursue
        other rewrite paths.
     -  Note that SRV RRs impose additional requirements on clients.

Acknowledgments:
=================

   The editors would like to thank Keith Moore for all his consultations
   during the development of this draft. We would also like to thank
   Paul Vixie for his assistance in debugging our implementation, and
   his answers on our questions. Finally, we would like to acknowledge
   our enormous intellectual debt to the participants in the Knoxville
   series of meetings, as well as to the participants in the URI and URN
   working groups.

References:
===========

   [1]  Mockapetris, P., "Domain names - implementation and
        specification", STD 13, RFC 1035, November 1987.

   [2]  Mockapetris, P., "Domain names - concepts and
        facilities", STD 13, RFC 1034, November 1987.

   [3]  Moats, Ryan, "URN Syntax", RFC-2141, May 1997.

   [4]  Gulbrandsen, A. and P. Vixie, "A DNS RR for specifying
        the location of services (DNS SRV)", RFC-2052, October 1996.

   [5]  Crocker, D., Overell, P. "Augmented BNF for Syntax 
        Specifications: ABNF", RFC-2234, November 1997.

   [6]  Daniel R. "A Trivial Convention for using HTTP in URN Resolution".
        RFC2169. June 1997.
    
   [7]  Mealling, M., Daniel, R., "Resolution of Uniform Resource
        Identifiers using the Domain Name System", RFC-2483. 
        November 1998.

   [8]  IEEE Standard for Information Technology - Portable Operating
        System Interface (POSIX) - Part 2: Shell and Utilities (Vol. 1);
        IEEE Std 1003.2-1992; The Institute of Electrical and
        Electronics Engineers; New York; 1993. ISBN:1-55937-255-9

   [9]  Braden, R., "Requirements for Internet Hosts - Application and
        and Support", RFC-1123, Oct. 1989.

   [10] Berners-Lee, T., R. Fielding, L. Masinter. "Uniform Resource 
        Identifiers (URI): Generic Syntax", RFC-2396, August 1998.


IANA Considerations
===================

   The only registration function that impacts the IANA is for
   the values that are standardized for the Services and Flags fields.
   To extend the valid values of the Flags field beyond what is 
   specified in this document requires a published specification that
   is approved by the IESG.

   The values for the Services field will be determined by the 
   application that makes use of the NAPTR record. Those values 
   must be specified in a published specification and approved
   by the IESG. 

Security Considerations
=======================

   The interactions with DNSSEC are currently being studied. It is 
   expected that NAPTR records will be signed with SIG records once 
   the DNSSEC work is deployed.

   The rewrite rules make identifiers from other namespaces subject to
   the same attacks as normal domain names. Since they have not been
   easily resolvable before, this may or may not be considered a
   problem.

   Regular expressions should be checked for sanity, not blindly passed
   to something like PERL.

   This document has discussed a way of locating a service, but has not
   discussed any detail of how the communication with that service takes
   place. There are significant security considerations attached to the
   communication with a service. Those considerations are outside the
   scope of this document, and must be addressed by the specifications
   for particular communication protocols.













Author Contact Information:
===========================

   Michael Mealling
   Network Solutions
   505 Huntmar Park Drive
   Herndon, VA  22070
   voice: (703) 742-0400
   fax: (703) 742-9552
   email: michaelm@netsol.com
   URL: http://www.netsol.com/

   Ron Daniel Jr.
   DATAFUSION, Inc.
   139 Townsend Street, Ste. 100
   San Francisco, CA  94107
   415.222.0100 fax 415.222.0150 
   rdaniel@datafusion.net
   http://www.datafusion.net





































Mealling & Daniel                                              [Page 12]


-- 
--------------------------------------------------------------------------------
Michael Mealling	|      Vote Libertarian!       | www.rwhois.net/michael
Sr. Research Engineer   |   www.ga.lp.org/gwinnett     | ICQ#:         14198821
Network Solutions	|          www.lp.org          |  michaelm@netsol.com



Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id RAA24229 for urn-ietf-out; Mon, 22 Feb 1999 17:35:33 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2]) by services.bunyip.com (8.8.5/8.8.5) with ESMTP id RAA24224 for <urn-ietf@services.bunyip.com>; Mon, 22 Feb 1999 17:35:21 -0500 (EST)
Received: (from daemon@localhost) by mocha.bunyip.com (8.8.5/8.8.5) id RAA01448 for urn-ietf@services; Mon, 22 Feb 1999 17:34:40 -0500 (EST)
Received: from bailey.dscga.com (bailey.dscga.com [198.78.9.11]) by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id RAA01445 for <urn-ietf@bunyip.com>; Mon, 22 Feb 1999 17:34:27 -0500 (EST)
Received: (from michael@localhost) by bailey.dscga.com (8.9.1/) id RAA10936 for urn-ietf@bunyip.com; Mon, 22 Feb 1999 17:27:46 -0500 (EST)
From: Michael Mealling <michael@bailey.dscga.com>
Message-Id: <199902222227.RAA10936@bailey.dscga.com>
Subject: [URN] new draft-urn-naptr-rr-01.txt
To: urn-ietf@bunyip.com
Date: Mon, 22 Feb 1999 13:14:24 -0500 (EST)
X-Mailer: ELM [version 2.4ME+ PL31H (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mocha.bunyip.com id RAA01446
Sender: owner-urn-ietf@Bunyip.Com
Precedence: bulk
Reply-To: Michael Mealling <michael@bailey.dscga.com>
Errors-To: owner-urn-ietf@Bunyip.Com

Hi folks,
  This is a preliminary draft of the NAPTR RR document. This is the one
that's intended for Standards Track. I'm going to take comments up until
Wednesday the 24th. The draft deadline is the 26th (that Friday). I hope to
have comments integrated and the draft submitted by Thursday. 
 
draft-urn-dns-rds-01.txt which describes the URI resolution application
will be coming shortly.
 
Here are the few content changes that you need to pay attention to:
 
1) A 'u' flag was added. This flag is terminal which means it does the
   same thing as the 'a' or 's' flags. The 'u' flag specifies that the
   output of the regular expression for the particular record is to be 
   treated as a URI. This is to accomodate several proposals that need to
   include other information about the resolver other than host and port.
 
2) the DNSIND group has pointed out that (until further notice) DNS
   compression is a Bad Thing (tm). So we've taken it out of this draft.
   I'm also changing the BIND code to reflect that. This is only on the
   server side. The client code can deal with uncompressing an uncompressed
   domain-name so it shouldn't impact anyone.
 
3) There have been some ABND changes. Please check them carefully.
 
4) Most of the rest of the content concerns the distinction between
   the base NAPTR behavior and the actual application for which it is 
   used (URN resolution, Ryan's service discovery stuff, Patrik's telephone
   number stuff, etc)
 
Anyway, here it is.


Network Working Group                                     M. Mealling
draft-urn-naptr-rr-01.txt                     Network Solutions, Inc.
Category: Standards Track			            R. Daniel
Expires: August, 1999                                DATAFUSION, Inc.
                                                             Feb 1999


      The Naming Authority Pointer (NAPTR) DNS Resource Record

Status of this Memo
===================

     This document is an Internet-Draft and is in full conformance
     with all provisions of Section 10 of RFC2026.

     Internet-Drafts are working documents of the Internet Engineering
     Task Force (IETF), its areas, and its working groups.  Note that
     other groups may also distribute working documents as
     Internet-Drafts.

     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."

     The list of current Internet-Drafts can be accessed at
     http://www.ietf.org/ietf/1id-abstracts.txt

     The list of Internet-Draft Shadow Directories can be accessed at
     http://www.ietf.org/shadow.html.

Abstract:
=========

   This document describes a DNS Resource Record which specifies
   a rewrite rule that, when applied to an existing string
   will produce a new domain. Reasons for rewriting a domain
   vary from URN Resource Discovery Systems to moving out of date
   services to new domains.

   This document updates the portions of RFC2168 specifically
   dealing with the definition of the NAPTR record.

Introduction:
=============

   This RR was originally produced by the URN [3] Working Group as
   a way to encode rule-sets in DNS so that the delegated 
   sections of a URI could be decomposed in such a way that they
   could be changed and re-delegated over time. The result was
   a Resource Record that included a regular expression which would
   be used by a client program to rewrite a string into a domain-name.
   Regular expressions were chosen for their compactness to
   expressivity ratio allowing for a great deal of information
   to be encoded in a rather small DNS packet.

   The function of rewriting a string according to the rules in a 
   record has usefullness in several different applications. This
   document defines the basic assumptions that all of those applications
   must adhere to. It does not define the reasons for why the rewrite
   is used, what the expected outcomes are, or what they are used
   for. Those are specified by applications that define how they use
   the NAPTR record and algorithms within their contexts.

   Flags and other fields are also specified in the RR to control the
   rewrite procedure in various ways or to provide information on how
   to communicate with the host at the domain-name that was the result
   of the rewrite. 

   The final result is a RR that has several fields which interact
   in a non-trivial but implementable way. This document specifies
   those fields and their values.

      The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
      NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED",  "MAY", and
      "OPTIONAL" in this document are to be interpreted as described in
      RFC 2119.

NAPTR RR Format
===============

   The format of the NAPTR RR is given below. The DNS type code for
   NAPTR is 35. [1] [2]

   Domain TTL Class Order Preference Flags Service Regexp Replacement

   Domain
          The domain name this resource record refers to. This is the
          'key' for this entry in the rule database. This value will
          either be the first well known key (<something>.uri.net for 
          example) or a new key that is the output of a replacement or 
          regexp rewrite. Beyond this it has the standard DNS
          requirements. [1]

   TTL
          Standard DNS meaning. [1]

   Class
          Standard DNS meaning [1]

   Order
          A 16-bit unsigned integer specifying the order in which 
          the NAPTR records MUST be processed to ensure the correct 
          ordering of rules. Low numbers are processed before high 
          numbers, and once a NAPTR is found whose rule "matches" 
          the target, the client MUST NOT consider any NAPTRs with 
          a higher value for order (except as noted below for the 
          Flags field).

   Preference
          A 16-bit unsigned integer which specifies the order in 
          which NAPTR records with equal "order" values SHOULD be 
          processed, low numbers being processed before high numbers.  
          This is similar to the preference field in an MX record, and 
          is used so domain administrators can direct clients towards 
          more capable hosts or lighter weight protocols. A client MAY 
          look at records with higher preference values if it has a 
          good reason to do so such as no understanding the preferred 
          protocol or service.

   Flags
          A <character-string> containing flags to control aspects of 
          the rewriting and interpretation of the fields in the 
          record. Flags are single characters from the set [A-Z0-9]. 
          The case of the alphabetic characters is not significant.

          At this time only four flags, "S", "A", "U", and "P", are  
          defined. The "S", "A" and "U" flags denote a terminal lookup. 
          This means that this NAPTR record is the last one and that the
          flag determines what the next stage should be.  The "S" flag
          means that the next lookup should be for SRV [4] records. 
          "A" means that the next lookup should be for A records. 
          The "U" flag means that the next step is not a DNS lookup
          but that the output of the Regexp field is a URL [10].

          The "P" flag says that the remainder of the application side 
          algorithm shall be carried out in a Protocol-specific fashion. 
          The new set of rules is identified by the Protocol specified 
          in the Services field.  The record that contains the 'P' 
          flag is the last record that is interpreted by the rules 
          specified in this document.  The new rules are dependent 
          on the application for which they are being used and the 
          protocol specified. For example, if the application is a 
          URI RDS and the protocol is WIRE then the new set of rules 
          are governed by the algorithms surrounding the WIRE HTTP 
          specification and not this document. 

          The remaining alphabetic flags are reserved for future 
          versions of the NAPTR specification. The numeric flags
          may be used for local experimentation. The S, A, U and P flags
          are all mutually exclusive, and resolution libraries MAY
          signal an error if more than one is given. (Experimental code
          and code for assisting in the creation of NAPTRs would be more
          likely to signal such an error than a client such as a
          browser). We anticipate that multiple flags will be allowed in
          the future, so implementers MUST NOT assume that the flags
          field can only contain 0 or 1 characters. Finally, if a client
          encounters a record with an unknown flag, it MUST ignore it
          and move to the next record. This test takes precedence even
          over the "order" field. Since flags can control the
          interpretation placed on fields, a novel flag might change the
          interpretation of the regexp and/or replacement fields such
          that it is impossible to determine if a record matched a 
          given target.

	  The "S", "A", and "U"  flags are called 'terminal' flags 
          since they halt any looping rewrite algorithms. If those 
          flags are not present then clients may assume that another 
          NAPTR RR exists at the domain-name produced by the current 
          rewrite rule. Since the "P" flag specifies a new algorithm, 
          it may or may not be 'terminal', thus the client cannot 
          assume that another NAPTR exists since this case is 
          determined elsewhere.

          DNS servers MAY interpret these flags and values and use
          that information to include appropriate SRV and A records
          in the additional information portion of the DNS packet.
          Clients are encouraged to check for additional information
          but are no required to do so.

   Service
          Specifies the service(s) available down this rewrite 
          path. It may also specify the particular protocol that
          is used to talk with a service. A protocol MUST be specified
          if the flags field states that the NAPTR is terminal. If a
          protocol is specified, but the flags field does not state that
          the NAPTR is terminal, the next lookup MUST be for a NAPTR.
          The client MAY choose not to perform the next lookup if the
          protocol is unknown, but that behavior MUST NOT be relied
          upon.

          The service field may take any of the values below (using the
          Augmented BNF of RFC 2234[5]):

           service_field = [ [protocol] *("+" rs)]
           protocol      = ALPHA *31ALPHANUM
           rs            = ALPHA *31ALPHANUM
           ; The protocol and rs fields are limited to 32
           ; characters and must start with an alphabetic.

          i.e. an optional protocol specification followed by 0 or more
          resolution services. Each resolution service is indicated by
          an initial '+' character.

          Note that the empty string is also a valid service field. This
          will typically be seen at the beginning of a series of rules, 
          when it is impossible to know what services and protocols 
          will be offered by a particular service.

          The actual format of the service request and response will be
          determined by the resolution protocol, and is the subject for
          other documents. Protocols need not offer all services. The 
          labels for service requests shall be formed from the set of 
          characters [A-Z0-9]. The case of the alphabetic characters is 
          not significant.

          The list of "valid" protocols for any given NAPTR record is 
          any protocol that implements some or all of the services 
          defined for a NAPTR application.  Currently, THTTP [6] is 
          the only protocol that is known to make that claim at the time
          of publication. Any other protocol that is to be used must 
          have documentation specifying:
               * how it implements the services of the application
               * how it is to appear in the NAPTR record (i.e., the 
                 string id of the protocol)

          The list of valid Resolution Services is defined by the
          documents that specify individual NAPTR based applications.
          One example is RFC-2483, "Resolution of Uniform Resource
          Identifiers using the Domain Name System" [7], from which
          this document was extracted.

          It is worth noting that the interpretation of this field
          is subject to being changed by new flags, and that the current
          specification is oriented towards telling clients how to 
          talk with a URN resolver.

   Regexp
          A STRING containing a substitution expression that is applied
          to the original string held by the client in order to 
          construct the next domain name to lookup. The grammar of the 
          substitution expression is given in the next section.

          The regular expressions MUST NOT be used in a cumulative 
          fashion, that is, they should only be applied to the original
          string held by the client, never to the domain name produced
          by a previous NAPTR rewrite. The latter is tempting in some
          applications but experience has shown such use to be 
          extremely fault sensitive, very error prone, and extremely
          difficult to debug.

   Replacement
          The next NAME to query for NAPTR, SRV, or A records depending
          on the value of the flags field. This MUST be a fully qualified
          domain-name. Unless and until permitted by future standards 
          action, name compression is not to be used for this field.

Substitution Expression Grammar:
================================

   The content of the regexp field is a substitution expression. True
   sed(1) substitution expressions are not appropriate for use in this
   application for a variety of reasons, therefore the contents of the
   regexp field MUST follow the grammar below:

subst_expr   = delim-char  ere  delim-char  repl  delim-char  *flags
delim-char   = "/" / "!" / ... <Any non-digit or non-flag character 
               other than backslash '\'. All occurances of a delim_char
               in a subst_expr must be the same character.>
ere          = POSIX Extended Regular Expression (see [6], section
               2.8.4)
repl         = 1 * ( OCTET /  backref )
backref      = "\" 1POS_DIGIT
flags        = "i"
POS_DIGIT    = %x31-39                 ; 0 is not an allowed backref

   The result of applying the substitution expression to the original
   URI MUST result in a string that obeys the syntax for DNS host names
   [7]. Since it is possible for the regexp field to be improperly
   specified, such that a non-conforming host name can be constructed,
   client software SHOULD verify that the result is a legal host name
   before making queries on it.

   Backref expressions in the repl portion of the substitution
   expression are replaced by the (possibly empty) string of characters
   enclosed by '(' and ')' in the ERE portion of the substitution
   expression. N is a single digit from 1 through 9, inclusive. It
   specifies the N'th backref expression, the one that begins with the
   N'th '(' and continues to the matching ')'.  For example, the ERE

                      (A(B(C)DE)(F)G)

   has backref expressions:

                      \1  = ABCDEFG
                      \2  = BCDE
                      \3  = C
                      \4  = F
                      \5..\9  = error - no matching subexpression

   The "i" flag indicates that the ERE matching SHALL be performed in a
   case-insensitive fashion. Furthermore, any backref replacements MAY
   be normalized to lower case when the "i" flag is given. 

   The first character in the substitution expression shall be used as
   the character that delimits the components of the substitution
   expression.  There must be exactly three non-escaped occurrences of
   the delimiter character in a substitution expression. Since escaped
   occurrences of the delimiter character will be interpreted as
   occurrences of that character, digits MUST NOT be used as delimiters.
   Backrefs would be confused with literal digits were this allowed.
   Similarly, if flags are specified in the substitution expression, the
   delimiter character must not also be a flag character.

The Basic NAPTR Algorithm
============================================

   The behavior and meaning of the flags and services assume an 
   algorithm where the output of one rewrite is a new key that points
   to another rule. This looping algorithm allows NAPTR records to 
   incrementally specify a complete rule. These incremental rules
   can be delegated which allows other entities to specify rules so
   that one entity does not need to understand _all_ rules.

   The algorithm starts with a string and some known key (domain). 
   NAPTR records for this key are retrieved, those with unknown
   Flags or inappropriate Services are discarded and the remaining
   records are sorted by their Order field. Within each value of Order,
   the records are further sorted by the Preferences field.

   The records are examined in sorted order until a matching record
   is found. A record is considered a match iff:

   1) it has a Replacement field value instead of a Regexp field value.

   or 

   2) the Regexp field matches the string held by the client.

   The first match MUST be the match that is used. Once a match is 
   found, the Services field is examined for whether or not this rule 
   advances toward the desired result. If so, then the rule is 
   applied to the target string. If not, the process halts. The domain
   that results from the regular expression is then used as the 
   domain of the next loop through the NAPTR algorithm. Note that
   the same target string is used throughout the algorithm.

   This looping is extremely important since it is the method by 
   which complex rules are broken down into manageable delegated chunks.
   The flags fields simply determine at which point the looping should 
   stop (or other specialized behavior).

   Since flags are valid at any level of the algorithm, the degenerative
   case is to never loop but to lookup the NATPR and then stop. In
   many specialized cases this is all that is needed. Implementors 
   should be aware that the degenerative case should not become the 
   common case.

Application Specifications
==========================

   It should be noted that the NAPTR algorithm is the basic assumption
   about how NAPTR works. The reasons for the rewrite and the expected
   output and its use are specified by documents that define what
   applicatiions the NAPTR record and algorithm are used for. Any
   document that defines such an application must define the following:

         * The first known key or how to build it 
         * The valid Services and Protocols
         * What the expected use is for the output of the last rewrite
         * The validity and/or behavior of any 'P' flag protocols.
         * The general semantics surrounding why and how NAPTR and its
           algorithm are being used.

   Currently the only example of such a document is RFCXXXX, 
   "Resolution of Uniform Resource Identifiers using the Domain Name
   System" [7].  

Examples
============================================

   NOTE: These are examples only. They are taken from ongoing work and
   may not represent the end result of that work. They are here for
   pedagogical reasons only.

Example 1
---------

   NAPTR was originally specified for use with the a Uniform Resource
   Name Resolver Discovery System. This example details how a 
   particular URN would use the NAPTR record to find a resolver
   service.

   Consider a URN namespace based on MIME Content-Ids. The URN might
   look like this:

                 urn:cid:199606121851.1@mordred.gatech.edu

   (Note that this example is chosen for pedagogical purposes, and does
   not conform to the CID URL scheme.)

   The first step in the resolution process is to find out about the CID
   namespace. The namespace identifier [3], cid, is extracted from the 
   URN, prepended to urn.net. 'cid.urn.net' then becomes the first 
   'known' key in the NAPTR algorithm. the NAPTR for cid.urn.net looked 
   up and returns a record:

   cid.urn.net
   ;;       order pref flags service        regexp           replacement
   IN NAPTR 100   10   ""  ""  "/urn:cid:.+@([^\.]+\.)(.*)$/\2/i"    .

   We have only one NAPTR response, so ordering the responses is not a
   problem.  The replacement field is empty, so we check the regexp
   field and use the pattern provided there. We apply that regexp to the
   entire URN to see if it matches, which it does.  The \2 part of the
   substitution expression returns the string "gatech.edu". Since the
   flags field does not contain "s" or "a", the lookup is not terminal
   and our next probe to DNS is for more NAPTR records where the new
   domain is 'gatech.edu' and the string is the same string as before.

   Note that the rule does not extract the full domain name from the
   CID, instead it assumes the CID comes from a host and extracts its
   domain.  While all hosts, such as mordred, could have their very own
   NAPTR, maintaining those records for all the machines at a site as
   large as Georgia Tech would be an intolerable burden. Wildcards are
   not appropriate here since they only return results when there is no
   exactly matching names already in the system.

   The record returned from the query on "gatech.edu" might look like:

   gatech.edu IN NAPTR
   ;;       order pref flags service           regexp  replacement
   IN NAPTR 100  50  "s"  "z3950+N2L+N2C"     ""    z3950.tcp.gatech.edu
   IN NAPTR 100  50  "s"  "rcds+N2C"          ""    rcds.udp.gatech.edu
   IN NAPTR 100  50  "s"  "http+N2L+N2C+N2R"  ""    http.tcp.gatech.edu

   Continuing with our example, we note that the values of the order and
   preference fields are equal in all records, so the client is free to
   pick any record. The flags field tells us that these are the last
   NAPTR patterns we should see, and after the rewrite (a simple
   replacement in this case) we should look up SRV records to get
   information on the hosts that can provide the necessary service.

   Assuming we prefer the Z39.50 protocol, our lookup might return:

   ;;                        Pref Weight   Port Target
   z3950.tcp.gatech.edu IN SRV 0    0      1000 z3950.gatech.edu
                        IN SRV 0    0      1000 z3950.cc.gatech.edu
                        IN SRV 0    0      1000 z3950.uga.edu

   telling us three hosts that could actually do the resolution, and
   giving us the port we should use to talk to their Z39.50 server.

   Recall that the regular expression used \2 to extract a domain name
   from the CID, and \. for matching the literal '.' characters
   separating the domain name components. Since '\' is the escape
   character, literal occurances of a backslash must be escaped by
   another backslash. For the case of the cid.urn.net record above, the
   regular expression entered into the zone file should be
   "/urn:cid:.+@([^\\.]+\\.)(.*)$/\\2/i".  When the client code actually
   receives the record, the pattern will have been converted to
   "/urn:cid:.+@([^.]+\.)(.*)$/\2/i".

Example 2
---------

   Even if URN systems were in place now, there would still be a
   tremendous number of URLs.  It should be possible to develop a URN
   resolution system that can also provide location independence for
   those URLs.  This is related to the requirement that URNs be able to
   grandfather in names from other naming systems, such as ISO Formal
   Public Identifiers, Library of Congress Call Numbers, ISBNs, ISSNs,
   etc.

   The NAPTR RR could also be used for URLs that have already been
   assigned.  Assume we have the URL for a very popular piece of
   software that the publisher wishes to mirror at multiple sites around
   the world:

        http://www.foo.com/software/latest-beta.exe

   We extract the prefix, "http", and lookup NAPTR records for
   http.uri.net. This might return a record of the form

   http.uri.net IN NAPTR
   ;;  order   pref flags service      regexp             replacement
        100     90   ""      ""   "!http://([^/:]+)!\1!i"       .

   This expression returns everything after the first double slash and
   before the next slash or colon. (We use the '!' character to delimit
   the parts of the substitution expression. Otherwise we would have to
   use backslashes to escape the forward slashes, and would have a
   regexp in the zone file that looked like
   "/http:\\/\\/([^\\/:]+)/\\1/i".).

   Applying this pattern to the URL extracts "www.foo.com". Looking up
   NAPTR records for that might return:

   www.foo.com
   ;;       order pref flags   service  regexp     replacement
    IN NAPTR 100  100  "s"   "http+L2R"   ""    http.tcp.foo.com
    IN NAPTR 100  100  "s"   "ftp+L2R"    ""    ftp.tcp.foo.com

   Looking up SRV records for http.tcp.foo.com would return information
   on the hosts that foo.com has designated to be its mirror sites. The
   client can then pick one for the user.

Example 3
---------

   A non-URI example is where a NAPTR is used to specify the available
   mappings from a domain-name to telephony based endpoints. In this
   example the regular expression field is not used since the important
   information is encoded within the services field.

   0.0.0.4.6.2.6.5.8.6.4.e164.int.
       IN NAPTR 100 10 "s" "h323call+N2R" "" tele2.se.
       IN NAPTR 102 10 "s" "potscall+N2R" "" tele2.se.
       IN NAPTR 102 10 "s" "smtp+N2R"     "" tele2.se.

   In these examples the domain is an encoded E164 telephone number.
   The services field specifies that, for this particular telephone 
   number, the services that are available are h323call, potscall 
   and smtp; and that "tele2.se" is the target that provides those
   services. Since the flag is "s" then the next step should be a
   query for an SRV record which will contain specific information 
   about the "tele2.se" domain.

DNS Packet Format
=================

   The packet format for the NAPTR record is as follows

                                    1  1  1  1  1  1
      0  1  2  3  4  5  6  7  8  9  0  1  2  3  4  5
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    |                     ORDER                     |
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    |                   PREFERENCE                  |
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                     FLAGS                     /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                   SERVICES                    /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                    REGEXP                     /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                  REPLACEMENT                  /
    /                                               /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

   where:

   FLAGS         A <character-string> which contains various flags.

   SERVICES      A <character-string> which contains protocol
                 and service identifiers.

   REGEXP        A <character-string> which contains a regular 
                 expression.

   REPLACEMENT   A <domain-name> which specifies the new value in
                 the case where the regular expression is a simple
                 replacement operation.

Master File Format
==================

   The master file format follows the standard rules in RFC-1035 [1]. 
   Order and preference, being 16-bit unsigned integers, shall be 
   an integer between 0 and 65535. The Flags and Services and Regexp 
   fields are all <character-string>s that cannot contain spaces and 
   thus can be included in their above specified form. While the 
   Regexp field is also a <character-string> it can contain 
   numerous backslashes and thus should be treated with care. 

Advice to domain administrators
===============================

   Beware of regular expressions. Not only are they a pain to get
   correct on their own, but there is the previously mentioned
   interaction with DNS. Any backslashes in a regexp must be entered
   twice in a zone file in order to appear once in a query response.
   More seriously, the need for double backslashes has probably not been
   tested by all implementors of DNS servers. 

   The "a" flag allows the next lookup to be for A records rather than
   SRV records. Since there is no place for a port specification in the
   NAPTR record, when the "A" flag is used the specified protocol must
   be running on its default port.

   The URN Syntax draft defines a canonical form for each URN, which
   requires %encoding characters outside a limited repertoire. The
   regular expressions MUST be written to operate on that canonical
   form. Since international character sets will end up with extensive
   use of %encoded characters, regular expressions operating on them
   will be essentially impossible to read or write by hand.

Notes:
======

     -  A client MUST process multiple NAPTR records in the order
        specified by the "order" field, it MUST NOT simply use the first
        record that provides a known protocol and service combination.
     -  When multiple RRs have the same "order", the client should use
        the value of the preference field to select the next NAPTR to
        consider. However, because of preferred protocols or services,
        estimates of network distance and bandwidth, etc. clients may
        use different criteria to sort the records.
     -  If the lookup after a rewrite fails, clients are strongly
        encouraged to report a failure, rather than backing up to pursue
        other rewrite paths.
     -  Note that SRV RRs impose additional requirements on clients.

Acknowledgments:
=================

   The editors would like to thank Keith Moore for all his consultations
   during the development of this draft. We would also like to thank
   Paul Vixie for his assistance in debugging our implementation, and
   his answers on our questions. Finally, we would like to acknowledge
   our enormous intellectual debt to the participants in the Knoxville
   series of meetings, as well as to the participants in the URI and URN
   working groups.

References:
===========

   [1]  Mockapetris, P., "Domain names - implementation and
        specification", STD 13, RFC 1035, November 1987.

   [2]  Mockapetris, P., "Domain names - concepts and
        facilities", STD 13, RFC 1034, November 1987.

   [3]  Moats, Ryan, "URN Syntax", RFC-2141, May 1997.

   [4]  Gulbrandsen, A. and P. Vixie, "A DNS RR for specifying
        the location of services (DNS SRV)", RFC-2052, October 1996.

   [5]  Crocker, D., Overell, P. "Augmented BNF for Syntax 
        Specifications: ABNF", RFC-2234, November 1997.

   [6]  Daniel R. "A Trivial Convention for using HTTP in URN Resolution".
        RFC2169. June 1997.
    
   [7]  Mealling, M., Daniel, R., "Resolution of Uniform Resource
        Identifiers using the Domain Name System", RFC-2483. 
        November 1998.

   [8]  IEEE Standard for Information Technology - Portable Operating
        System Interface (POSIX) - Part 2: Shell and Utilities (Vol. 1);
        IEEE Std 1003.2-1992; The Institute of Electrical and
        Electronics Engineers; New York; 1993. ISBN:1-55937-255-9

   [9]  Braden, R., "Requirements for Internet Hosts - Application and
        and Support", RFC-1123, Oct. 1989.

   [10] Berners-Lee, T., R. Fielding, L. Masinter. "Uniform Resource 
        Identifiers (URI): Generic Syntax", RFC-2396, August 1998.


IANA Considerations
===================

   The only registration function that impacts the IANA is for
   the values that are standardized for the Services and Flags fields.
   To extend the valid values of the Flags field beyond what is 
   specified in this document requires a published specification that
   is approved by the IESG.

   The values for the Services field will be determined by the 
   application that makes use of the NAPTR record. Those values 
   must be specified in a published specification and approved
   by the IESG. 

Security Considerations
=======================

   The interactions with DNSSEC are currently being studied. It is 
   expected that NAPTR records will be signed with SIG records once 
   the DNSSEC work is deployed.

   The rewrite rules make identifiers from other namespaces subject to
   the same attacks as normal domain names. Since they have not been
   easily resolvable before, this may or may not be considered a
   problem.

   Regular expressions should be checked for sanity, not blindly passed
   to something like PERL.

   This document has discussed a way of locating a service, but has not
   discussed any detail of how the communication with that service takes
   place. There are significant security considerations attached to the
   communication with a service. Those considerations are outside the
   scope of this document, and must be addressed by the specifications
   for particular communication protocols.













Author Contact Information:
===========================

   Michael Mealling
   Network Solutions
   505 Huntmar Park Drive
   Herndon, VA  22070
   voice: (703) 742-0400
   fax: (703) 742-9552
   email: michaelm@netsol.com
   URL: http://www.netsol.com/

   Ron Daniel Jr.
   DATAFUSION, Inc.
   139 Townsend Street, Ste. 100
   San Francisco, CA  94107
   415.222.0100 fax 415.222.0150 
   rdaniel@datafusion.net
   http://www.datafusion.net





































Mealling & Daniel                                              [Page 12]




-- 
--------------------------------------------------------------------------------
Michael Mealling	|      Vote Libertarian!       | www.rwhois.net/michael
Sr. Research Engineer   |   www.ga.lp.org/gwinnett     | ICQ#:         14198821
Network Solutions	|          www.lp.org          |  michaelm@netsol.com


