in reply to Re: Strawberry Perl: Windows hosts file not working?
in thread Strawberry Perl: Windows hosts file not working?
Maybe the hosts file needs to be elsewhere and/or named something else. (I also made a copy of etc/hosts named etc/hosts.txt.)C:\etc>type hosts 127.0.0.1 www.google.com.au C:\etc>perl -MSocket -wle "my $pip=gethostbyname('www.google.com.au'); +my $ip=inet_ntoa($pip);print $ip;" 142.250.66.195
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Strawberry Perl: Windows hosts file not working?
by LanX (Saint) on Feb 14, 2022 at 01:02 UTC | |
by syphilis (Archbishop) on Feb 14, 2022 at 03:46 UTC |