AnyEvent resolves hostnames always via DNS

Marc Lehmann schmorp at schmorp.de
Thu Mar 8 09:05:14 CET 2012


On Wed, Mar 07, 2012 at 10:51:53PM +0000, Dirk Koopman <djk at tobit.co.uk> wrote:
> Actually, this is rather misleading as in so many subtle ways a lack
> of an /etc/hosts file (or misconfiguration thereof) will prevent an X
> system (for instance) from working correctly - annoyingly - usually
> in a very inconsistent fashion.

That statement makes no sense - you claim (without evidence) that a
missing hosts file causes X problems, and then use this claim to say that
using it as a fallback is misleading.

What has one thing to do with the other?

> The default order has traditionally been hosts,bind (as can be seen

That file is obsolete for over a decade and isn't used by
glibc. Furthermore, the default is "bind hosts" not "hosts bind"

> in linux /etc/hosts.conf). I know people that rely on this order to
> allow them to *override* DNS lookups.

People can break things in whatever way they want, and then they get to keep
the pieces. The hosts file was never meant for that.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list