Re: Have any method to let FreeBSD with Squid 2.2STABLE5 support underscores?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 23 Dec 1999 01:31:35 +0100

Merton Campbell Crockett wrote:

> The bottom-line, however, is that an organization with a properly designed
> DNS architecture should not see two different behaviours when presented
> with a URL containing an invalid character in the server name. You should
> never see the condition where NXDOMAIN is returned when the URL is
> accessed through Squid but not when accessed directly.

There is more to it than only DNS. RFC 1738 (URL) is rather strict on
how hostnames may be composed for use in URLs. Underscores it not
included in the valid set of characters for hostnames in URLs.

From RFC1738 section 5, BNF

; URL schemeparts for ip based protocols:

ip-schemepart = "//" login [ "/" urlpath ]

login = [ user [ ":" password ] "@" ] hostport
hostport = host [ ":" port ]
host = hostname | hostnumber
hostname = *[ domainlabel "." ] toplabel
domainlabel = alphadigit | alphadigit *[ alphadigit | "-" ]
alphadigit
toplabel = alpha | alpha *[ alphadigit | "-" ] alphadigit
alphadigit = alpha | digit
hostnumber = digits "." digits "." digits "." digits
Received on Wed Dec 22 1999 - 17:52:21 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:05 MST