<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Mass Hostname-to-IP Address Converter</title>
	<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter/</link>
	<description>Comments on Ask MetaFilter post Mass Hostname-to-IP Address Converter</description>
	<pubDate>Tue, 20 Nov 2007 09:33:18 -0800</pubDate>
	<lastBuildDate>Tue, 20 Nov 2007 09:33:18 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Mass Hostname-to-IP Address Converter</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter</link>	
		<description>Is there a program that can find the ip addresses of many network devices on a corporate internal network, and create a neat list automatically? &lt;br /&gt;&lt;br /&gt; I manage the main print servers on a major corporate network in the US.  I have a long list of the TCP ports being used by these servers to send print jobs to the printers. Because we use DHCP for the printers, these TCP ports are all in the form of the print devices&apos; hostnames.  So in effect, I have a list of some 1300 hostnames and I want to make a list of the CURRENT IP addresses of all these hostnames.  Is there a program that will automatically ping all these hostname from the list and produce a corresponding list exportable to .csv of all the IP addresses?&lt;br&gt;
&lt;br&gt;
I tried googling but was only able to find web-based apps that worked for internet hosts.  These are devices on the internal corporate network.  I am hoping there&apos;s a simple app that can do this.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.76706</guid>
		<pubDate>Tue, 20 Nov 2007 09:26:50 -0800</pubDate>
		<dc:creator>BigLankyBastard</dc:creator>
		
			<category>Network</category>
		
			<category>TCP-IP</category>
		
			<category>Ping</category>
		
			<category>Hostnames</category>
		
	</item> <item>
		<title>By: zap rowsdower</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139592</link>	
		<description>Preferred platform to run the application on? (OS X, Windows, Linux, etc...)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139592</guid>
		<pubDate>Tue, 20 Nov 2007 09:33:18 -0800</pubDate>
		<dc:creator>zap rowsdower</dc:creator>
	</item><item>
		<title>By: omnipotentq</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139601</link>	
		<description>I&apos;m going to assume Windows and throw a couple names out. &quot;Angry IP Scanner&quot; is a nice tiny little app I used back at my old job when I was in undergrad. I&apos;m not sure if it&apos;ll export to csv, but from what I recall, it does output the information into rows and columns, so it &lt;em&gt;should&lt;/em&gt; be capable of something like that.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139601</guid>
		<pubDate>Tue, 20 Nov 2007 09:38:09 -0800</pubDate>
		<dc:creator>omnipotentq</dc:creator>
	</item><item>
		<title>By: BigLankyBastard</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139602</link>	
		<description>Sorry - I&apos;ll be running this off a Windows XP Pro workstation on an Active Directory domain.  Or Server 2003.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139602</guid>
		<pubDate>Tue, 20 Nov 2007 09:38:31 -0800</pubDate>
		<dc:creator>BigLankyBastard</dc:creator>
	</item><item>
		<title>By: Skorgu</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139607</link>	
		<description>&lt;a href=&apos;http://insecure.org/nmap/download.html&apos;&gt;NMAP&lt;/a&gt; is the canonical answer and it will run on windows, albeit not quite as well as it does on *NIX boxes.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139607</guid>
		<pubDate>Tue, 20 Nov 2007 09:40:57 -0800</pubDate>
		<dc:creator>Skorgu</dc:creator>
	</item><item>
		<title>By: vitrum</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139625</link>	
		<description>Well... this sounds like a job for Perl to me !&lt;br&gt;
&lt;br&gt;
http://nopaste.ch/528e57b05039e22.html&lt;br&gt;
&lt;br&gt;
file hostlist.txt in the same directory as the script should have a line separated list of your 1,300 hostnames&lt;br&gt;
&lt;br&gt;
it will then create iplist.csv&lt;br&gt;
&lt;br&gt;
I don&apos;t have the means to try it on Windows at the moment but it should work the same...&lt;br&gt;
http://www.activestate.com/Products/activeperl/</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139625</guid>
		<pubDate>Tue, 20 Nov 2007 09:51:29 -0800</pubDate>
		<dc:creator>vitrum</dc:creator>
	</item><item>
		<title>By: BigLankyBastard</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139645</link>	
		<description>Wow.  This question has brought out the hardcore coders and gurus.  Have mercy on a lowly infrastructure guy, since I am plainly out of my depth in these discussions.&lt;br&gt;
&lt;br&gt;
The Angry IP Scanner looks like it only resolves IP addresses to hostnames, not vice-versa.  Also, it triggers the corporate SAV security when downloaded.&lt;br&gt;
&lt;br&gt;
NMAP looks extremely powerful, but I am at a loss as to how exactly to phrase the command line syntax to get what I want without making my workstation look like it&apos;s a network security threat.  I&apos;m afraid I&apos;ll trigger a broad scan by accident or something and earn myself a strong slap.&lt;br&gt;
&lt;br&gt;
The PERL script may do the trick - it looks simple enough, but I have no idea how to go about making it work on my computer. Is there any way to get that in a ready-to-use format (like .exe) without jacking around with converting it myself?  I really appreciate all the suggestions so far.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139645</guid>
		<pubDate>Tue, 20 Nov 2007 10:06:41 -0800</pubDate>
		<dc:creator>BigLankyBastard</dc:creator>
	</item><item>
		<title>By: mrbugsentry</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139657</link>	
		<description>&lt;a href=&quot;http://www.foundstone.com/us/resources/proddesc/superscan3.htm&quot;&gt;Superscan 3 &lt;/a&gt; does exactly that.  I prefer it to the more recent SS4.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139657</guid>
		<pubDate>Tue, 20 Nov 2007 10:14:37 -0800</pubDate>
		<dc:creator>mrbugsentry</dc:creator>
	</item><item>
		<title>By: mrbugsentry</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139660</link>	
		<description>Wait, I didn&apos;t read the question right.  &lt;br&gt;
&lt;br&gt;
SS will get you the list.  Since you have a WinXP box, I&apos;d yank it into MS Access and do a join on the host names, then format it into a pretty little report.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139660</guid>
		<pubDate>Tue, 20 Nov 2007 10:18:09 -0800</pubDate>
		<dc:creator>mrbugsentry</dc:creator>
	</item><item>
		<title>By: BigLankyBastard</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139694</link>	
		<description>MrBugSentry, I&apos;m trying to figure out how to use either version 3 or 4 to get the program to resolve hostnames to IP addresses in bulk.  I found a &quot;Bulk Resolve&quot; option that let me import the list of hostnames, but it failed to resolve any but two of them, oddly.  What am I doing wrong? &lt;br&gt;
&lt;br&gt;
Again, I have a huge list of hostnames in text format (not ip addresses) and I want something that will import the list of hostnames and just pings each hostname or otherwise queries my local/internal DNS and gathers the IP address into a csv or plain text list.  I don&apos;t need port scan summaries, I don&apos;t need UDP, but I DO need something that I can fire and forget until it has compiled the list.  I really can&apos;t believe nobody has created a simple app that performs this tedious task.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139694</guid>
		<pubDate>Tue, 20 Nov 2007 10:39:26 -0800</pubDate>
		<dc:creator>BigLankyBastard</dc:creator>
	</item><item>
		<title>By: zeoslap</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139697</link>	
		<description>The DHCP server will know, ask whoever runs that for the list.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139697</guid>
		<pubDate>Tue, 20 Nov 2007 10:42:27 -0800</pubDate>
		<dc:creator>zeoslap</dc:creator>
	</item><item>
		<title>By: vitrum</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139703</link>	
		<description>perl to exe gets very messy... just tried for kicks and couldn&apos;t get it to run...&lt;br&gt;
&lt;br&gt;
if the port scanners don&apos;t quite do what you need here&apos;s a backup plan for ya&lt;br&gt;
&lt;br&gt;
download &lt;a href=&quot;http://www.activestate.com/store/activeperl/download/&quot;&gt;perl&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
go to start/programs/active perl/perl package manager&lt;br&gt;
at the ppm&amp;gt; prompt type &quot;&lt;b&gt;install Net-DNS&lt;/b&gt;&quot;&lt;br&gt;
close window when it&apos;s done&lt;br&gt;
&lt;br&gt;
copy the script text &lt;a href=&quot;http://nopaste.ch/31b686495be9070.html&quot;&gt;here&lt;/a&gt; into a file named perlscript.pl in a new directory... along with hostlist.txt mentioned above&lt;br&gt;
&lt;br&gt;
from a dos prompt run this from that directory&lt;br&gt;
&lt;b&gt;perlscript.pl &lt;i&gt;your-dns-server-ip&lt;/i&gt;&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
changed the script slightly to allow you to specify the internal dns server in case there was any confusion in auto detection</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139703</guid>
		<pubDate>Tue, 20 Nov 2007 10:46:13 -0800</pubDate>
		<dc:creator>vitrum</dc:creator>
	</item><item>
		<title>By: vitrum</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139705</link>	
		<description>zeoslap has a point too :)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139705</guid>
		<pubDate>Tue, 20 Nov 2007 10:47:11 -0800</pubDate>
		<dc:creator>vitrum</dc:creator>
	</item><item>
		<title>By: BigLankyBastard</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139718</link>	
		<description>Yeah, I already tried talking to the keepers of the DNS servers, and they seem to think the DNS/MSWINS database for DHCP is not queryable in any helpful manner.  Effectively they said they&apos;d have to plug in each hostname manually, just like I would.  So that&apos;s out.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139718</guid>
		<pubDate>Tue, 20 Nov 2007 10:52:03 -0800</pubDate>
		<dc:creator>BigLankyBastard</dc:creator>
	</item><item>
		<title>By: BigLankyBastard</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139763</link>	
		<description>Vitrum, Oh MY GOD you did it.&lt;br&gt;
&lt;br&gt;
Ladies and Gentlemen, I asked for an application and this GOD wrote it from scratch.  Works like a charm, my man!  And in like ten seconds, too!  I cannot be any happier with the outcome!  &lt;br&gt;
&lt;br&gt;
I owe you big time for this boon.  Next time you&apos;re in MN hit me with a MefiMail and I&apos;ll buy you several libations of your choice.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139763</guid>
		<pubDate>Tue, 20 Nov 2007 11:18:55 -0800</pubDate>
		<dc:creator>BigLankyBastard</dc:creator>
	</item><item>
		<title>By: mattdini</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1139771</link>	
		<description>I have some WMI/VBS scripts that can do this.. the one I just cropped together uses WMI on the remote computer to tell you the IP.  So if you run it as domain admin the list will populate, if you can&apos;t, let me know and I&apos;ll make a pinging one...&lt;br&gt;
&lt;br&gt;
Create a text file called: hoststoping.txt&lt;br&gt;
fill it with host names:&lt;br&gt;
comp1&lt;br&gt;
comp2&lt;br&gt;
comp3&lt;br&gt;
&lt;br&gt;
Save the following code as &quot;pingstuff.vbs&quot;&lt;br&gt;
&lt;br&gt;
Put them in the same directory..&lt;br&gt;
&lt;br&gt;
open a CMD as domain admin.. type:&lt;br&gt;
cscript pingstuff.vbs&lt;br&gt;
&lt;br&gt;
you should get a list of host names then IP..&lt;br&gt;
&lt;br&gt;
This was a quick and dirty script, so if it doesn&apos;t work MefiMail me :)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-----------------------------------&lt;br&gt;
&lt;br&gt;
Const ForReading = 1&lt;br&gt;
On Error Resume Next&lt;br&gt;
Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br&gt;
Set objNetwork = CreateObject(&quot;Wscript.Network&quot;)&lt;br&gt;
Dim strHost&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Error Resume Next&lt;br&gt;
&lt;br&gt;
Set objFile = objFSO.OpenTextFile(&quot;hoststoping.txt&quot;, ForReading)&lt;br&gt;
Do Until objFile.AtEndOfStream&lt;br&gt;
strLine = objFile.ReadLine&lt;br&gt;
&lt;br&gt;
strHost = strLine&lt;br&gt;
&lt;br&gt;
getIP(strLine)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Loop&lt;br&gt;
&lt;br&gt;
objFile.Close&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
function getIP(strComputer)&lt;br&gt;
&lt;br&gt;
Set objWMIService = GetObject(&quot;winmgmts:&quot; &amp;amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp;amp; strComputer &amp;amp; &quot;\root\cimv2&quot;)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Set IPConfigSet = objWMIService.ExecQuery _&lt;br&gt;
   (&quot;Select * from Win32_NetworkAdapterConfiguration Where IPEnabled=TRUE&quot;)&lt;br&gt;
&lt;br&gt;
For Each IPConfig in IPConfigSet&lt;br&gt;
   If Not IsNull(IPConfig.IPAddress) Then&lt;br&gt;
       For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress)&lt;br&gt;
          wscript.echo strComputer &amp;amp; VBTAB &amp;amp; IPConfig.IPAddress(i)&lt;br&gt;
       Next&lt;br&gt;
   End If&lt;br&gt;
Next &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
end function</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1139771</guid>
		<pubDate>Tue, 20 Nov 2007 11:24:09 -0800</pubDate>
		<dc:creator>mattdini</dc:creator>
	</item><item>
		<title>By: jannw</title>
		<link>http://ask.metafilter.com/76706/Mass-HostnametoIP-Address-Converter#1141497</link>	
		<description>this looks like a job for ping, cat, awk, sed, and grep to me.&lt;br&gt;
&lt;br&gt;
Download &quot;unix tools for windows&quot; and run from a ccommand line. Shell scripting this, if you have never done it before, should not take more than a day to work out and is fun!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.76706-1141497</guid>
		<pubDate>Wed, 21 Nov 2007 13:46:36 -0800</pubDate>
		<dc:creator>jannw</dc:creator>
	</item>
	</channel>
</rss>
