On Fri, Nov 24, 2000 at 07:32:03PM +0200, Doru Petrescu wrote:
> tryed to email "[EMAIL PROTECTED]" but I got an user not found" SMTP error :(
> hope this is the right email address ...
>
> ---------- Original message ----------
> Subject: URI::Heuristic
>
>
> Hi,
>
> I was playing with the URI::Heuristic module, and
> I have a suggestion ... when guessing the host part of a URI, befor trying
> things like
>
> www.ACME.MY_COUNTRY
> www.ACME.com
> www.ACME.org
> ...
>
> isn't normal to first try to resolve that ACME string ? maybe it is a host
> in my OWN LOCAL DOMAIN ...
I haven't looked at the code, but I can guess the reason: it's desirable
to limit URI::* to doing pure string manipulation, without any
dependence on DNS lookups or actual document lookups over HTTP, etc.
This limits the amount of guessing it can do, but it won't rely on
the availability of a network connection. Depending on the circumstances
of use,DNS lookups may be slow or completely inoperational.
Perhaps you can implement a URI::Heuristic::Gethostname to do what you want?
> lynx on the other hand does another stupid thing ...
> it tries:
> 1. rdsnet.ro ... fails
> 2. www.rdsnet.ro.com ... fails
> 3. www.rdsnet.ro.org/net/mil ... etc ... all of them fail ...
> 4. host not found ...
> (but OFC, www.rdsnet.ro exists and is up and alive, too bad no one ask for
> his name ...)
>
> what do you say ... ?
Send a bug report to lynx-dev :)
--
Reinier Post
TU Eindhoven