The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
scan direcotries nagrcm Shell Programming and Scripting 1 03-02-2008 10:37 PM
How to scan and capture akondeti Shell Programming and Scripting 3 01-06-2008 08:10 PM
Please let me know Regarding Port Scan myramkumar UNIX for Advanced & Expert Users 7 05-17-2007 08:11 AM
File Scan Dastard Shell Programming and Scripting 2 04-08-2007 12:35 PM
Scan Rates Negm AIX 0 03-20-2005 01:15 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2001
Registered User
 

Join Date: Jun 2001
Location: Nothern Sweden
Posts: 9
IP Name scan

Hi.

how to search a range of IP:s for their registed IP names?
Like nslookup or host for all IPs 130.xxx.xxx.1 to 130.xxx.xxx.254

//nicke
Forum Sponsor
  #2 (permalink)  
Old 07-17-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,304
Lightbulb dnswalk

There is a DNS scanning utility that is often used by hackers or security folks that do a dnswalk or similar scan. Try this and let us know if it works for you!

http://sourceforge.net/projects/dnswalk/

  #3 (permalink)  
Old 07-18-2001
Registered User
 

Join Date: Jun 2001
Location: Nothern Sweden
Posts: 9
hi.

well all DNS components for perl was not installed so it didnt work with dnswalk. however I asked a workingmate and he wrote a script in a few minutes...
Code:
#!/usr/bin/perl

use Socket;

# While sdtin
while(<>) {
	chomp($_);
	if($_ =~ /(\d+\.\d+\.\d+\.)(\d+)\s+(\d+)/) {
		for($2..$3) {
			$iaddr = inet_aton( "$1$_" );
			print "$1$_ = ".(gethostbyaddr($iaddr, AF_INET) or "hostname not found")."\n";
		}
	} elsif($_ =~ /(\d+\.\d+\.\d+\.\d+)/ ) { 
		$iaddr = inet_aton( $1 );
		print "$1 = ".(gethostbyaddr($iaddr, AF_INET) or "hostname not found")."\n";
	} else {
		print "Invalid ip\n";
	}
}
//nicke

inserted code tags for readability --oombera

Last edited by oombera; 02-16-2004 at 12:26 PM.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0