in reply to IO::Socket::INET fails in rare cases on Windows

A google for that error suggests that the cause is: "The DNS is not properly configured on the workstation or there are problems with the DNS server".

Whether that will help him track down his problem I don't know, but it tends to strongly indicate that it is a problem local to his configuration or network rather than anything that you can fix in the script.

It's also hard to see how the snippet you posted would be causing a DNS lookup? How sure are you that it is that part of the code that is failing?


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.
  • Comment on Re: IO::Socket::INET fails in rare cases on Windows

Replies are listed 'Best First'.
Re^2: IO::Socket::INET fails in rare cases on Windows
by Anonymous Monk on Jan 30, 2005 at 19:41 UTC
    Thank you for your answer!! I'm sure that this is the fragment that is failing because in my code "die" is used instead of "print" and script dies at that line.. It's possible that IO::Socket::INET tries to resolve string "127.0.0.1" or does some other (unnecessary!) query of DNS, probably I'll try to break DNS on my box to reproduce it and try to debug the IO::Socket::INET code to see what it does.. Thanks again!