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

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...

Replies are listed 'Best First'.
Re^7: LWP::UserAgent always complains about Hostname
by alexm (Chaplain) on Jul 20, 2008 at 19:22 UTC

    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?

      GET does not work either, I believe that I used the built-in Ubuntu Perl. This was driving me crazy too because EVERYTHING BUT Perl is working correctly, so I don't know what is going on with the system.

      I guess I will just build a new system from scratch.