![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Strawberry Perl: Windows hosts file not working?by sectokia (Pilgrim) |
on Feb 07, 2022 at 06:23 UTC ( #11141187=perlquestion: print w/replies, xml ) | Need Help?? |
sectokia has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, If I put an entry in windows hosts file (127.0.0.1 foo.example.com) then I can ping foo.example.com at command line, but nslookup foo.example.com fails. And also all perl scripts that try and use foo.example.com will fail. Example tcp_connect of AnyEvent::Socket will say 'No such device or address'. I cannot seem to figure out how to create a name that just points to 127.0.0.1 that I can use in URLs for scripts running on localhost. It seems like nothing in perl can resolve the name to the host. Does perl use the windows hosts file?
Back to
Seekers of Perl Wisdom
|
|