This doesn't seem to work and I am not sure why I am getting syntax error#/usr/bin/perl use warnings; use Socket; print "Ip address "; my $ipaddr = <STDIN>; $peer_host = gethostbyaddr($ipaddr, AF_INET); $peer_addr = inet_ntoa($peer_host); print $peer_addr;
In reply to DNS Resolution4 by muaddib2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |