http://qs321.pair.com?node_id=1101823


in reply to 500 error on a simple request

This looks to be a DNS issue and not a Perl issue. If the hostname cannot be resolved have a word with your network support folks and find out why. You could to a

nslookup www.xxxxxxxx.com
or
host www.xxxxxxxxxx.com
and see if it resolves from the command line.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; Blog: http://blog.berghold.net Warning: No political correctness allowed.

Replies are listed 'Best First'.
Re^2: 500 error on a simple request
by sylph001 (Sexton) on Sep 24, 2014 at 17:16 UTC

    Here's result from nslookup and also resolv.conf file.

    It seems the first nameserver in the list doesn't work but the second does.

    Does that mean my perl program always uses the first nameserver from the list?

    Any suggestions what I should do before getting to support guys?

    $ /usr/sbin/nslookup www.xxxxxxxx.com
    ;; Got recursion not available from 172.25.226.13, trying next server
    Server:         172.25.229.141
    Address:        172.25.229.141#53

    Non-authoritative answer:
    Name:   www.xxxxxxxx.com
    Address: 207.xxx.xx.xxx

    $ more /etc/resolv.conf
    options timeout:2 retrans:1 retry:1
    domain xxxxxxxx
    nameserver 172.25.226.13
    nameserver 172.25.229.141
    nameserver 172.25.226.16

      Hi,

      Do the same on the other two systems, present everything to Support and ask them if they have been messing with the system that has stop working properly.

      Ask nicely, it's best to stay friends with Support

      J.C.