<?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>Martin Wolf&#039;s weblog &#187; avahi</title>
	<atom:link href="http://mwolf.net/archive/tag/avahi/feed/" rel="self" type="application/rss+xml" />
	<link>http://mwolf.net</link>
	<description>Software development and assorted geekery</description>
	<lastBuildDate>Sun, 08 Aug 2010 18:15:32 +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>Why &#8216;.local&#8217; is a bad choice for an internal domain</title>
		<link>http://mwolf.net/archive/zeroconf-stealing-dot-local/</link>
		<comments>http://mwolf.net/archive/zeroconf-stealing-dot-local/#comments</comments>
		<pubDate>Fri, 15 May 2009 19:32:30 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[bonjour]]></category>
		<category><![CDATA[dot-local]]></category>
		<category><![CDATA[zeroconf]]></category>

		<guid isPermaLink="false">http://mwolf.net/?p=41</guid>
		<description><![CDATA[If your local DNS domain ends in .local, machines running zeroconf (avahi or bonjour) may have trouble resolving local machine names.]]></description>
			<content:encoded><![CDATA[<p>I installed Ubuntu 9.04 on a machine at work this week, and that went quite flawlessly except for one weird little problem. I could access machines on the local network by their short name (e.g. &#8216;einstein&#8217;) but not by their fully-qualified domain name (&#8217;einstein.intra.local&#8217;).</p>
<p>Now, if it had been the other way around, the explanation would have been obvious: a missing &#8216;<em>search intra.local</em>&#8216; entry in <em>/etc/resolv.conf</em>. But being able to resolve short names but not long ones, that was a new problem for me. I used <em>nslookup</em> to verify that the local name server was responding correctly to both forms, and it was. But any other application, from <em>ping</em> to Mozilla Firefox, failed to resolve the long form.</p>
<p>A colleague put me on the path to the solution, however. In the <a href="http://en.wikipedia.org/wiki/Zeroconf">zeroconf</a> protocol, which is implemented in Linux as <a href="http://avahi.org/">Avahi</a> and on the Mac as Bonjour, the <em>.local</em> domain is magic and is considered a reserved name. Hence, when Avahi is running, any address resolution queries for a machine name ending in <em>.local</em>, are intercepted and the DNS server never gets to see them (<em>nslookup</em> bypasses the usual resolver API, however).</p>
<p>This is apparently a known issue, but it was new and quite surprising to me. I didn&#8217;t bother to investigate who is at fault here: did the zeroconf people blatantly highjack a perfectly valid namespace, or has <em>.local</em> always been reserved and everybody but me knew about it? Anyway, it&#8217;s fair to assume that zeroconf is here to stay now, so network administrators take note: better call your local domain something else.</p>
<p>Once you know what it is, the solution is easy. In my case I wasn&#8217;t interested in the functionality offered by Avahi, so I just uninstalled it (<em>sudo apt-get remove avahi-daemon</em>). Alternatively, <a href="http://avahi.org/wiki/AvahiAndUnicastDotLocal">here</a> is a receipt for disabling the special treatment of .local, but keeping the rest of the daemon running.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwolf.net/archive/zeroconf-stealing-dot-local/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
