Re: where is /etc/hosts supposed to come from?
On Thu, Dec 31, 2009 at 04:33:44PM +0000, Philipp Kern wrote:
> On 2009-12-31, Osamu Aoki <firstname.lastname@example.org> wrote:
> > I know, according to rfc2606, "invalid" seems to be a choice for
> > the top level domain (TLD) to construct domain names that are sure to be
> > invalid from the Internet. But result is the same as choosing "local".
> > (This was a choice which I used to use.)
> Using .local in own environments sadly clashes with the (I think now
> installed by default) mDNS namespace for locally-resolvable hostnames.
> But it somehow makes sense for a laptop; it would even resolve. ;-)
Yes, that is what I was getting at too. It is also a problem for Mac OS X
boxes, at least without fiddling.
This can be a problem even if you don't intend to use zeroconf/mdns on your
network. Typically what happens is DNS queries time out without resolving
and packet traces show that there are no requests happening.
I don't know of any good choice for a TLD that is guaranteed not to be used on
the Internet, although currently I am using .pri (short for .private) here.
Even .local is only mentioned in a experimental RFC that had expired (at least
last I checked which was a while ago now).
In case any is confused of the relationship between mdns and zeroconf:
Maintainer: Ubuntu Core developers <email@example.com>
Original-Maintainer: Utopia Maintenance Team <firstname.lastname@example.org>
Depends: libc6 (>= 2.4), base-files (>= 3.1.10), perl, avahi-daemon (>= 0.6.16-1)
Suggests: avahi-autoipd | zeroconf
Description: NSS module for Multicast DNS name resolution
nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality
of the GNU C Library (glibc) providing host name resolution via Multicast
DNS (using Zeroconf, aka Apple Bonjour / Apple Rendezvous ), effectively
allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS
Task: ubuntu-desktop, eucalyptus-node, eucalyptus-simple-cluster, print-server, kubuntu-desktop, kubuntu-netbook, edubuntu-desktop, xubuntu-desktop, mobile-mid, ubuntu-netbook-remix
Brian May <email@example.com>