Bug#549103: libwww-perl: DNS Resolver fails to respect /etc/resolv.conf

gregor herrmann gregoa at debian.org
Wed Sep 30 20:21:28 UTC 2009


On Wed, 30 Sep 2009 12:07:46 -0700, John H. Robinson, IV wrote:

> The DNS resolver in lwp-request is doing odd things:
> lwp-request -m HEAD libraries         will bring up libraries.com
> lwp-request -m HEAD http://libraries  will bring up libraries.ucsd.edu
>   (I am in the uscd.edu domain)

There's indeed some interesting magic going on:


$ lwp-request -m HEAD -U libraries
HEAD http://www.libraries.at
User-Agent: lwp-request/5.827 libwww-perl/5.832

200 OK
[..]

$ lwp-request -m HEAD -U http://libraries
HEAD http://libraries
User-Agent: lwp-request/5.827 libwww-perl/5.832

500 Can't connect to libraries:80 (Bad hostname 'libraries')


The second one is expected but the first one, where "libraries" is
converted into "http://www.libraries.at" for me (and something
similar for you), is - hm - a bit 'user-friendly'.

I don't think it's a problem related to resolv.conf but the
missing schema:// where libwww-perl adds stuff to make a complete
URL.

I'm just not sure where and why this is happening ...

Cheers,
gregor

-- 
 .''`.   http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-    NP: Paul Mc Cartney: Only Love Remains
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20090930/85d46e04/attachment.pgp>


More information about the pkg-perl-maintainers mailing list