خرید بک لینک

Vote count: 1

I have a job where I need to do nslookup on an IP address. If it matches then I need to print the name of the host. The problem is that the IP address comes reversed when ruing the command.

nslookup 10.11.12.13
13.12.11.10.in-addr.arpa

I tried to use reverse but that reversed everything which is not what I want.

my $ip = '13.12.11.10';
$result = reverse($ip);
print $result;

which then prints 01.11.21.31 I do not want to reverse everything, just the full numbers.

Please can someone help?

asked 1 min ago
DanTheman

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 27 شهريور 1396 ساعت: 13:35

صفحه بندی