in reply to Strawberry Perl: Windows hosts file not working?

Hello sectokia,

it seems.. no

> Perl does not "use the /etc/hosts file". It's using the same network stack as the rest of the machine. It is the network layer that is using /etc/hosts.

PS I confirm that it should work: test it this way

# HOSTS # 127.0.0.1 foo.example.com perl -MSocket -E"say inet_ntoa(inet_aton($ARGV[0]))" foo.example.com 127.0.0.1

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.