<?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: How to query lots of DNS records</title>
	<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records/</link>
	<description>Comments on Ask MetaFilter post How to query lots of DNS records</description>
	<pubDate>Wed, 05 Sep 2007 17:05:12 -0800</pubDate>
	<lastBuildDate>Wed, 05 Sep 2007 17:05:12 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How to query lots of DNS records</title>
		<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records</link>	
		<description>50 domains, 3 registrars, and DNS records hosted at 6 different providers.  I need help inventorying this mess! &lt;br /&gt;&lt;br /&gt; I&apos;ve been given the task of inventorying our domain name situation so that we can make it a little less insane.  So far I&apos;ve been able to collect all the domain names and their nameservers into an Excel document.  What I want to do next is get all the DNS records (hopefully) or at least the A, NS, and MX in a format that I can easily bring them into Excel.  Ideally I&apos;d like to run a batch or script to do this all at once, but my limited knowledge of nslookup and dig has failed me.  Help me hive mind!</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.70884</guid>
		<pubDate>Wed, 05 Sep 2007 16:59:10 -0800</pubDate>
		<dc:creator>TungstenChef</dc:creator>
		
			<category>DNS</category>
		
			<category>domain</category>
		
			<category>domainname</category>
		
			<category>dig</category>
		
			<category>nslookup</category>
		
			<category>windows</category>
		
	</item> <item>
		<title>By: TungstenChef</title>
		<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records#1057012</link>	
		<description>I forgot to mention, I&apos;m in an all Windows environment so I can&apos;t use any neat Unix tricks.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.70884-1057012</guid>
		<pubDate>Wed, 05 Sep 2007 17:05:12 -0800</pubDate>
		<dc:creator>TungstenChef</dc:creator>
	</item><item>
		<title>By: iamabot</title>
		<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records#1057026</link>	
		<description>Unix tricks are available to you via cygwin...&lt;br&gt;
&lt;br&gt;
Shell scripting can handle this pretty easily.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.70884-1057026</guid>
		<pubDate>Wed, 05 Sep 2007 17:26:04 -0800</pubDate>
		<dc:creator>iamabot</dc:creator>
	</item><item>
		<title>By: Malor</title>
		<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records#1057161</link>	
		<description>This is the sort of thing you really, really want Unix shell utilities for.  As iamabot says, you can install perfectly good versions via Cygwin. &lt;br&gt;
&lt;br&gt;
That said, the time involved in both learning the tools and then writing and debugging a program to do what you need will take many multiples of the time required to just do it yourself.   If you assume two minutes per domain (which is high), that&apos;s about 100 minutes -- under two hours.   Starting from dead scratch with no Unix knowledge, I suspect it would take at least a couple of days to get a working script... maybe longer, depending on how fast you learn.  &lt;br&gt;
&lt;br&gt;
You could probably also do this with Windows API calls, but you&apos;d need some kind of development environment and a couple of days to figure it out. &lt;br&gt;
&lt;br&gt;
You know, I just had a thought.  This would probably be relatively easy with Python and a custom library.  I see a &lt;a href=&quot;http://sourceforge.net/projects/pydns/&quot;&gt;Python DNS Library&lt;/a&gt;, which might abstract your problem well enough to work quickly.  Python libraries tend to be extremely elegant and easy to use.   I bet you could get something running in a day. &lt;br&gt;
&lt;br&gt;
In all three cases, I think it&apos;ll be faster to just do it manually.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.70884-1057161</guid>
		<pubDate>Wed, 05 Sep 2007 20:15:39 -0800</pubDate>
		<dc:creator>Malor</dc:creator>
	</item><item>
		<title>By: rhizome</title>
		<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records#1057280</link>	
		<description>To do this the way I think you&apos;re describing, you&apos;re going to need permissions to do a zone transfer. Unless you already know the names of the records you want to get and are just looking for tools to confirm them and get any extra details. Not many DNS hosting providers allow zone transfers but their management tool might have a textfile dump util for convenience.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.70884-1057280</guid>
		<pubDate>Wed, 05 Sep 2007 22:51:20 -0800</pubDate>
		<dc:creator>rhizome</dc:creator>
	</item><item>
		<title>By: Skorgu</title>
		<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records#1058124</link>	
		<description>Find a UNIX host, or get cygwin, this is a one liner that assumes you have dig available and domains.txt is a one-per-line list of the domains you&apos;re interested in: &lt;br&gt;
&lt;pre&gt;&lt;br&gt;
(for n in `cat domains.txt`; do dig $n A; dig $n NS; dig $n MX; done )  |grep -v \; | sort  | uniq&lt;/pre&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.70884-1058124</guid>
		<pubDate>Thu, 06 Sep 2007 14:32:17 -0800</pubDate>
		<dc:creator>Skorgu</dc:creator>
	</item><item>
		<title>By: Skorgu</title>
		<link>http://ask.metafilter.com/70884/How-to-query-lots-of-DNS-records#1058126</link>	
		<description>Hell, if you email me the list of domains, I&apos;ll run it for you.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.70884-1058126</guid>
		<pubDate>Thu, 06 Sep 2007 14:33:33 -0800</pubDate>
		<dc:creator>Skorgu</dc:creator>
	</item>
	</channel>
</rss>
