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 Rates Negm AIX 2 04-16-2009 11:29 AM
scan direcotries nagrcm Shell Programming and Scripting 1 03-03-2008 02:37 AM
How to scan and capture akondeti Shell Programming and Scripting 3 01-07-2008 12:10 AM
Please let me know Regarding Port Scan myramkumar UNIX for Advanced & Expert Users 7 05-17-2007 12:11 PM
File Scan Dastard Shell Programming and Scripting 2 04-08-2007 04:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-16-2001
nicke30 nicke30 is offline
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
  #2 (permalink)  
Old 07-17-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,779
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
nicke30 nicke30 is offline
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 04:26 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0