<?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>Life Scaling &#187; Name Resolving</title>
	<atom:link href="http://orensol.com/tag/name-resolving/feed/" rel="self" type="application/rss+xml" />
	<link>http://orensol.com</link>
	<description>Oren Solomianik's Blog</description>
	<lastBuildDate>Mon, 21 Jun 2010 08:10:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Blackhole Name Servers</title>
		<link>http://orensol.com/2009/01/25/blackhole-name-servers/</link>
		<comments>http://orensol.com/2009/01/25/blackhole-name-servers/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 16:37:37 +0000</pubDate>
		<dc:creator>Oren</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[BIND]]></category>
		<category><![CDATA[blackhole]]></category>
		<category><![CDATA[IANA]]></category>
		<category><![CDATA[in-addr.arpa]]></category>
		<category><![CDATA[lookup]]></category>
		<category><![CDATA[Name Resolving]]></category>
		<category><![CDATA[named]]></category>
		<category><![CDATA[reverse]]></category>

		<guid isPermaLink="false">http://orensol.com/?p=49</guid>
		<description><![CDATA[<p>If you are running a name server that&#8217;s serving your application or inner network in some way, and you start seeing a slowdown in reverse name resolution, you should check your logs (or if no name server logs, you can tcpdump port 53), and search for requests to BLACKHOLE-1.IANA.ORG (192.175.48.6) or BLACKHOLE-2.IANA.ORG (192.175.48.42).</p>
<p>When I saw [...]]]></description>
			<content:encoded><![CDATA[<p>If you are running a name server that&#8217;s serving your application or inner network in some way, and you start seeing a slowdown in reverse name resolution, you should check your logs (or if no name server logs, you can tcpdump port 53), and search for requests to BLACKHOLE-1.IANA.ORG (192.175.48.6) or BLACKHOLE-2.IANA.ORG (192.175.48.42).</p>
<p>When I saw these for the first time I thought it was some <a href="http://www.youtube.com/watch?v=qiSkyEyBczU" target="_blank">Chris Cornell</a> Joke.</p>
<p>If you&#8217;re seeing these and experience a slowdown, you have a problem &#8212; your name server is recursing and trying to resolve addresses in <a href="http://www.faqs.org/rfcs/rfc1918.html" target="_blank">the reserved private space</a>, instead of replying with an authoritative answer, or at least replying with a redirection.</p>
<p>There are 2 solutions (assuming you are using bind):</p>
<ol>
<li>Configure your name server to be authoritative for the reserved space:<br />
In /etc/named.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zone “0.0.10.in-addr.arpa” <span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #7a0874; font-weight: bold;">type</span> master;
<span style="color: #c20cb9; font-weight: bold;">file</span> “<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>named<span style="color: #000000; font-weight: bold;">/</span>0.0.10.in-addr.arpa.zone”;
<span style="color: #7a0874; font-weight: bold;">&#125;</span>;</pre></div></div>

<p>And in the zone file /var/named/10.in-addr.arpa.zone, if for example you want 10.0.0.3 to resolve to web.example.com:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$TTL</span> <span style="color: #000000;">14400</span>
<span style="color: #000000; font-weight: bold;">@</span> IN SOA ns1.example.com. admin.example.com. <span style="color: #7a0874; font-weight: bold;">&#40;</span>
<span style="color: #000000;">2009012501</span>;
<span style="color: #000000;">28800</span>;
<span style="color: #000000;">604800</span>;
<span style="color: #000000;">604800</span>;
<span style="color: #000000;">86400</span>
<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
IN NS ns1.example.com.
<span style="color: #000000;">3</span> IN PTR web.example.com</pre></div></div>

</li>
<li>If you know (or can assume) there&#8217;s a name server along the way that is configured to reply authoritatively for these queries, configure your name server to not perform <a href="http://zytrax.com/books/dns/ch7/queries.html#recursion" target="_blank">recursion</a>. This way it replies to the query with &#8220;I don&#8217;t know who&#8217;s 10.0.0.3, go look for yourself, here&#8217;s a hint&#8221;.In /etc/named.conf, add in options context:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">recursion no;</pre></div></div>

</li>
</ol>
<p>Since there was indeed a name server configured properly to reply for all the 10.0.0.0/8 addresses in my network, and I only configured the inner name server to reply for what the application needed, adding the no recursion option solved the problem in my case.</p>
<p>By the way, adding &#8220;recursion no&#8221; to a name server that is only there to serve some specific application need is good practice both security-wise and performance-wise.</p>
<p>Oh, and here&#8217;s <a href="http://www.iana.org/abuse/faq.html" target="_blank">what IANA have to say</a> about the blackhole servers. Creepy.</p>
]]></content:encoded>
			<wfw:commentRss>http://orensol.com/2009/01/25/blackhole-name-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->