On 19 Apr 2002 at 19:33, Andre Majorel wrote: > On 2002-04-19 16:46 +0100, Ian Abbott wrote: > > > It means that `www.arsdigita.de' cannot set > > > the cookie for `arsdigita.de'. To make *that* work, you'd have to > > > maintain a database of domains that use ".co.xxx" convention, as > > > opposed to those that use just ".xxx". > > > > Could you assume that all two-letter TLDs are country-code TLDs and > > require one more period than other TLDs (which are presumably at > > least three characters long)? > > Unfortunately, no. And you can't even use a TLD table to know > which TLDs require an extra dot because TLDs some swing both > ways ! For instance, you can have both gnomovision.fr and > gnomovision.com.fr.
I realized it was stupid after I posted it (I was about to leave!) when I remembered cc domains like .de don't need an extra period. I thought maybe a table of exceptions would sort that out - there are only 26*26 possible country codes, and if one bit of information where needed per country code the whole lot could be stored in an array of 26 long ints,perhaps. However, that doesn't work for your .fr example. > From http://www.afnic.asso.fr/enregistrement/nommage-fr.html, > the known subdomains for .fr are : > > .aeroport.fr > .assedic.fr > .asso.fr [etc.] > > There might be others. It's probably madness to try to track > that. Ye gods! If it was just a reflection of the common 3-letter TLDs such as .com, that would be a reasonable thing to check for.
