[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 <osamu@debian.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:

Package: libnss-mdns
Priority: optional
Section: admin
Installed-Size: 152
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
Architecture: amd64
Source: nss-mdns
Version: 0.10-3ubuntu3
Depends: libc6 (>= 2.4), base-files (>= 3.1.10), perl, avahi-daemon (>= 0.6.16-1)
Suggests: avahi-autoipd | zeroconf
Filename: pool/main/n/nss-mdns/libnss-mdns_0.10-3ubuntu3_amd64.deb
Size: 25830
MD5sum: 622ed99ad2e7bc6b7f7ad95eb51e12fe
SHA1: a3bc1ead6d63e48d60f6c529778dfc9d9df00637
SHA256: 3206f5a6ceecc3838781b758a50443df7b54146677d94d790658cc9de1a60c56
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
 domain .local.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
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 <bam@snoopy.debian.net>


Reply to: