in reply to LWP::UserAgent always complains about Hostname
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP::UserAgent always complains about Hostname
by Herkum (Parson) on Jul 19, 2008 at 16:50 UTC | |
by Anonymous Monk on Dec 11, 2008 at 19:28 UTC |