<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Geek Pub &#187; Linux</title>
	<atom:link href="http://www.thegeekpub.com/category/how-tos/linux-how-tos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekpub.com</link>
	<description>Drink Beer and Geek Out</description>
	<lastBuildDate>Mon, 29 Nov 2010 01:49:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Parse the Verisign Zone Files under Linux</title>
		<link>http://www.thegeekpub.com/527/how-to-parse-the-verisign-zone-files-under-linux/</link>
		<comments>http://www.thegeekpub.com/527/how-to-parse-the-verisign-zone-files-under-linux/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 03:30:15 +0000</pubDate>
		<dc:creator>The Big Geek</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[verisign]]></category>
		<category><![CDATA[zone]]></category>
		<category><![CDATA[zone file]]></category>

		<guid isPermaLink="false">http://www.thegeekpub.com/?p=527</guid>
		<description><![CDATA[Many developers have access to the Verisign TLD Zone files. A common question is what is the easiest way to extract the domain names for processing by another program.  Sometimes you simply need to extract the domain names for insert into a database such as MSSQL or MySQL. The good news is that it&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p>Many developers have access to the Verisign TLD Zone files. A common question is what is the easiest way to extract the domain names for processing by another program.  Sometimes you simply need to extract the domain names for insert into a database such as MSSQL or MySQL.</p>
<p><span id="more-527"></span></p>
<p>The good news is that it&#8217;s not that hard at all. All you need to do is grep the file like so:</p>
<p><strong>For .NET domains:</strong></p>
<pre>grep “^[a-zA-Z0-9-]\+ NS .*” net.zone|sed “s/NS .*//”|uniq &gt;&gt; netdomains.txt</pre>
<p><strong>For .COM domains:</strong></p>
<pre>grep “^[a-zA-Z0-9-]\+ NS .*” com.zone|sed “s/NS .*//”|uniq &gt;&gt; comdomains.txt</pre>
<p><strong>For .EDU domains:</strong></p>
<pre>grep “^[a-zA-Z0-9-]\+ NS .*” edu.zone|sed “s/NS .*//”|uniq &gt;&gt; edudomains.txt</pre>
<p>Grepping these files will create a file that just contains the list of domains.  Each domain will appear on a new line.  The output file will be missing the .com/.net/.edu extensions and you will need to add the correct extension (depending on the file) during your import process, or in you code after the import.</p>
<p>This process is the same on <strong>Mac OSX</strong>, <strong>BSD</strong> and other <strong>UNIX</strong> or <strong>Linux</strong> variants.</p>
<p>It&#8217;s really that simple!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d527').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Share this on your favorite social network:</em></strong></a>
<br />
<div class="d527" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F&amp;title=How+to+Parse+the+Verisign+Zone+Files+under+Linux" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F&amp;title=How+to+Parse+the+Verisign+Zone+Files+under+Linux" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F&amp;title=How+to+Parse+the+Verisign+Zone+Files+under+Linux" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F&amp;title=How+to+Parse+the+Verisign+Zone+Files+under+Linux" rel="nofollow" title="Add to&nbsp;LinkedIn"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/linkedin.png" title="Add to&nbsp;LinkedIn" alt="Add to&nbsp;LinkedIn" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F&amp;h=How+to+Parse+the+Verisign+Zone+Files+under+Linux" rel="nofollow" title="Add to&nbsp;Newsvine"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/newsvine.png" title="Add to&nbsp;Newsvine" alt="Add to&nbsp;Newsvine" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F&amp;title=How+to+Parse+the+Verisign+Zone+Files+under+Linux" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F&amp;title=How+to+Parse+the+Verisign+Zone+Files+under+Linux" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F" rel="nofollow" title="Add to&nbsp;Squidoo"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/squidoo.png" title="Add to&nbsp;Squidoo" alt="Add to&nbsp;Squidoo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+How+to+Parse+the+Verisign+Zone+Files+under+Linux+@+http%3A%2F%2Fwww.thegeekpub.com%2F527%2Fhow-to-parse-the-verisign-zone-files-under-linux%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.thegeekpub.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d527').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
<script type="text/javascript">$$('div.d527').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); </script>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekpub.com/527/how-to-parse-the-verisign-zone-files-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

