in reply to Re^3: LWP::UserAgent always complains about Hostname
in thread LWP::UserAgent always complains about Hostname

Where did the lwp-useragent.pl script come from? I did not see it in the distribution.

  • Comment on Re^4: LWP::UserAgent always complains about Hostname

Replies are listed 'Best First'.
Re^5: LWP::UserAgent always complains about Hostname
by Anonymous Monk on Jul 20, 2008 at 08:10 UTC
    Its probably code from your original question
Re^5: LWP::UserAgent always complains about Hostname
by alexm (Chaplain) on Jul 20, 2008 at 08:42 UTC

      It took a night of thinking on it before I realized this! DOH! This is the response from the .OUT file.

      connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 + ENOENT (No such file or directory) connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 + ENOENT (No such file or directory)

      So there is some part that is just straight out missing from the system config, somewhere...

        If these are the only syscalls on the .out file then it means that no DNS query is performed at all. It's weird, just as if you had disabled DNS queries on the system.

        Are you using your own perl or the system's? Have you mixed Ubuntu packaged modules with others from CPAN? Is the GET command failing also? What about wget? Have you modified /etc/host.conf or /etc/nsswitch.conf?