Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: LWP::UserAgent always complains about Hostname

by alexm (Chaplain)
on Jul 20, 2008 at 08:42 UTC ( [id://698894]=note: print w/replies, xml ) Need Help??


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

Our dear Anonymous Monk is right; it's your own code. Sorry for not making this clear enough.
  • Comment on Re^5: LWP::UserAgent always complains about Hostname

Replies are listed 'Best First'.
Re^6: LWP::UserAgent always complains about Hostname
by Herkum (Parson) on Jul 20, 2008 at 18:09 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?

        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2026-01-14 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.