You might single-step through that http.t with the perl debugger to find out how it knows that yours is a misconfigured system

IMHO easier would be to install perl 10.0 in /usr/local and try your script with that. If you do that, you find out whether ubuntu or perl5.8.8 is the culprit. While installing LWP::UserAgent you also find out on which non-core modules UserAgent is based and maybe some of them sound like they provide name services. Any likely candidates can then be reinstalled in your perl5.8.8 installation.

Just be careful with CPAN and both perl version. While different perl version have no problem coexisting on one machine it seems to me that cpan is using only one .cpan directory and can't cope with supplying more than one perl version. It might be better to create a second account just for using cpan with perl10.0 and leaving the old account strictly cpan with perl5.8.8

You might also use tcpdump to monitor whether there is any communication over the network when your script is called. Check the logfiles. Check /etc/nsswitch.conf and /etc/resolv.conf for sane values.


In reply to Re: LWP::UserAgent always complains about Hostname by jethro
in thread LWP::UserAgent always complains about Hostname by Herkum

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.