<?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>gnucom.cc &#187; dns</title>
	<atom:link href="http://blog.gnucom.cc/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gnucom.cc</link>
	<description>Code snippets and more...</description>
	<lastBuildDate>Wed, 18 Jan 2012 23:50:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Resolve IP address from hostname with perl.</title>
		<link>http://blog.gnucom.cc/2009/resolve-ip-address-from-hostname-with-perl/</link>
		<comments>http://blog.gnucom.cc/2009/resolve-ip-address-from-hostname-with-perl/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 02:11:20 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://gnucom.cc/blog/?p=93</guid>
		<description><![CDATA[Here is a small section of perl code that I stumbled upon that resolves an IP from a supplied hostname. Written by detour@metalshell.com. use Socket; use strict; &#160; sub hostname &#123; my &#40;@bytes, @octets, $packedaddr, $raw_addr, $host_name, $ip&#41;; if&#40;$_&#91;0&#93; =~ /[a-zA-Z]/g&#41; &#123; $raw_addr = &#40;gethostbyname&#40;$_&#91;0&#93;&#41;&#41;&#91;4&#93;; @octets = unpack&#40;&#34;C4&#34;, $raw_addr&#41;; $host_name = join&#40;&#34;.&#34;, @octets&#41;; &#125; else [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2009/resolve-ip-address-from-hostname-with-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

