[10183] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: URL parsing and IPv6 addresses

daemon@ATHENA.MIT.EDU (David Nessl)
Tue Aug 6 13:44:55 1996

Date: Tue, 6 Aug 1996 13:39:07 -0400 (EDT)
From: David Nessl <david@ufl.edu>
To: www-talk@w3.org
In-Reply-To: <960806.103807.CDT.TROTH@ua1vm.ua.edu>
Resent-From: www-talk@w3.org

The square brackets around an IP address are from RFC822:

  o   Square brackets ("[" and "]") are used to indicate the
      presence  of  a  domain-literal, which the appropriate
      name-domain  is  to  use  directly,  bypassing  normal
      name-resolution mechanisms

This would seem to be an appropriate URL extension -- put the IPv6 address
inside square brackets, and leave the :port outside.  For example: 

      http://[1:2:3:4:5:6]:8000

This extension should be generalized, e.g. programs should also be
prepared to accept IPv4 dotted-decimal addresses inside square brackets. 
e.g. 

      http://[1.2.3.4]:8000

Determination of the address type (IPv4 vs IPv6) should be left to the
host's network services (based on the presence of colons or periods).  

David Nessl -- Coordinator, Computer Systems (systems programmer)
E-mail:  david@ufl.edu          | Northeast Regional Data Center
Voice:   352-392-2061           | 112 SSRB, University of Florida
FAX:     352-392-9440           | Gainesville, FL 32611    USA


home help back first fref pref prev next nref lref last post