in reply to Problem with Nmap::Scanner

Using pair.perlmonks:
#!/usr/bin/perl use warnings; use strict 'refs'; use Nmap::Scanner; use Data::Dumper::Concise; my $scan = Nmap::Scanner->new(); $scan->tcp_syn_scan(); $scan->add_scan_port(16310-16316); $scan->add_target('209.197.123.153'); my $results = $scan->scan(); print Dumper( $results );
Note the ordering of $scan.

Replies are listed 'Best First'.
Re^2: Problem with Nmap::Scanner
by ashok.g (Beadle) on Jan 03, 2012 at 13:14 UTC
    I am able to figure this out. As suspected this is the problem with my DNS servers. After adding DNS servers to my server I am able to get the results of my code.

    Anyways thanks for your help.

    Thanks,
    Ashok.