Re: heuristic for server names

From: John A. Lauro <jlauro@dont-contact.us>
Date: Fri, 11 Jun 1999 10:04:44 EDT

> > > However, if you tell Netscape to use a proxy server, it will let the
> > > proxy server do DNS instead
> >
> > I see. My problem with getting Squid (or actually any program) to do this
> > sort of thing is localisation. I might want "microsoft" to give me
> > "www.microsoft.com.au", and someone in Japan might want
> > "www.microsoft.com.jp". Perhaps a better solution would be a background
> > program to run on the client machine that intercepts certain web requests
> > and rewrites them, in a fashion similar to Getright or Alexa? This might
> > make localisation (i.e. non-US-centricism) easier. Or even a plug-in for
> > browsers?

Put the following in the first part of your proxy-autoconfig file:
      if (!isResolvable(host))
          return "DIRECT";

That way, netscape will see that microsoft isn't resolvable, and will
try something else like www.microsoft.com... If you prefer to
customize it for your own localization, you can do that too as
part of the autoconfig. In other words, you don't need squid to do
this, have your javascript autoconfig do it.

---------------------------------------------------------------------------
John Lauro email: jlauro@flint.umich.edu
University of Michigan - Flint jlauro@umich.edu
Information Technology Services
303 E. Kearsley St. phone: (810) 762-3123
Flint, MI 48502 fax: (810) 766-6805
Received on Fri Jun 11 1999 - 08:19:35 MDT

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