O erro de resolução 407 é descrito em perl.org Perguntas e respostas :
Q: Even when http_proxy is set to the correct server with the proper credentials (using the convention username:[email protected]:port) I'm still not able to install packages via cpan. "LWP failed with code[407] message[Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )]"
A: CPAN doesn't support NTLM authentication, and it's difficult to get Authen::NTLM working with CPAN. I ended up using ntlmaps as a local proxy for NTLM authentication.
The first thing you'll need to do is get the latest version of NTLMAPS from their svn repo, extract it somewhere. Next you'll need to get the latest version of python and install it. Open NTLMAPS' server.cfg, set PARENT_PROXY to your proxy's address or IP, PARENT_PROXY_PORT to the port the proxy runs on (usually 80 or 8080), NT_DOMAIN to your domain, and USER to your username.
Run runserver.bat. It will ask for your password, enter it and press enter. Next you have to configure cpan to use NTLMAPS as a proxy. Go to strawberry\perl\lib\CPAN and open Config.pm. Set http_proxy to http://localhost:5865. Run CPAN and use it as you normally would. Now you should only have to start up NTLMAPS before running CPAN to get it to run properly.
Just a quick note, you may need to force LM + NT authentication rather than LM; To do this, open the NTLMAPS server.cfg set NT_PART to 1 and NTLM_FLAGS to 07820000.
Remover HTTP_PROXY e modificar o CPAN / Config.pm como indicado pode resolver o problema.
Resumo dos comentários abaixo:
O estudo de despejos wireshark mostra que o ActivePerl emite solicitações DNS que são retornadas como desconhecidas pelo servidor DNS. As soluções possíveis são apenas:
- Reconfiguração do servidor DNS (impossível para o cartaz)
- Iniciando uma solicitação no Site da Comunidade do ActiveState para interromper essas solicitações fúteis (sem garantia de qualquer alívio rápido)
- Faça o download manual e instale os módulos (apenas solução prática restante).