in reply to LWP::UserAgent connection problem as CGI

Using an IP address instead of the domain name works.
Perhaps the CGI box doesn't have DNS properly configured. Can you do hostname lookups at all? For example, what happens when you type "ping www.yahoo.com" on the command line on the CGI box?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: LWP::UserAgent connection problem as CGI

Replies are listed 'Best First'.
Re: •Re: LWP::UserAgent connection problem as CGI
by bassplayer (Monsignor) on Mar 03, 2004 at 18:30 UTC
    Thanks, but no problems pinging. I receive packets back from the IP address. Seems as though DNS is configured properly, but for some reason not for perl|apache|mod_perl?

    bassplayer

      I don't merlyn meant for you to ping th IP address but to test the Domain Name Server configuration by doing ping <hostname> as oppossed to ping <IP address>.

      Plankton: 1% Evil, 99% Hot Gas.
        Yes, I know. Sorry that I was unclear. I pinged www.yahoo.com just as merlyn suggested. The response was:
        64 bytes from 66.94.230.33: icmp_seq=0 ttl=52 time=9.800 ms 64 bytes from 66.94.230.33: icmp_seq=1 ttl=52 time=10.008 ms
        That is why I said that I received packets back from the IP address. Thanks.

        bassplayer