W3C home > Mailing lists > Public > uri@w3.org > February 2005

Re: quick check of DNS uri scheme examples

From: by way of Martin Duerst <jas@extundo.com>
Date: Mon, 21 Feb 2005 10:35:34 +0900
Message-Id: <6.0.0.20.2.20050221103522.03697270@localhost>
To: uri@w3.org




Dan Connolly <connolly@w3.org> writes:

 > At first, when I saw
 >
 >   dns:www.example.org
 > in http://www.ietf.org/internet-drafts/draft-josefsson-dns-url-11.txt
 >
 >
 > I thought it had to be
 >
 >   dns:/www.example.org
 >
 > but then I went back and checked, using the regex in 3986
 >   http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#regexp
 > and that's fine.
 >
 > $ perl -e ' "dns:www.example.org" =~
 > m,^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?,; print
 > "scheme: $2 ; authority: $4; path: $5; query: $7;  fragment: $9\n"'
 >
 > scheme: dns ; authority: ; path: www.example.org; query: ;  fragment:
 >
 > $ perl -e ' "dns://fw.example.org/*.%20%00.example?type=TXT" =~
 > m,^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?,; print
 > "scheme: $2 ; authority: $4; path: $5; query: $7;  fragment: $9\n"'
 >
 > scheme: dns ; authority: fw.example.org; path: /*.%20%00.example; query:
 > type=TXT;  fragment:

Hi Dan.  Thanks for verifying the examples, they had only been checked
manually until now, as far as I know.

 > A long time ago I found some rebol docs that introduced
 > a dns: scheme... it's gone 404... ah.. here it is...
 >   http://www.rebol.com/docs/core23/rebolcore-16.html
 >
 > That documentation shows
 >   dns://host.dom
 >
 > which is a different design. I hope they track IETF work relevant
 > to their language.

Agreed.

I recall seeing other programming languages or modules (was it Python?
Or Perl?) which supported DNS URIs as well, with a syntax more aligned
with my document.  I guess a confused syntax is to be expected when no
real standard has been published yet.  It will likely go away over
time.

Thanks,
Simon 
Received on Monday, 21 February 2005 01:41:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:35 GMT