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

quick check of DNS uri scheme examples

From: Dan Connolly <connolly@w3.org>
Date: Fri, 18 Feb 2005 12:43:54 -0600
To: simon@josefsson.org
Cc: uri@w3.org
Message-Id: <1108752234.4991.840.camel@localhost>

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:


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.


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Friday, 18 February 2005 18:43:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:09 UTC