Possible bug with hostname lookup

David Kuehling dvdkhlng at gmx.de
Sat Dec 18 08:17:16 EST 2010


I just stumbled into a problem with the Emacs package.  I made it run a
more usual start-up sequence, and now it tries to find out the fully
qualified domain-name of the NanoNote at startup.

So what it ends up is calling 'gethostbyname()' with the name
"BenNanoNote" (as set in /etc/hostname).  And this makes it dial out to
the nameserver configured in /etc/resolv.conf waiting a *long* time for
a timeout (it's not routed to the internet here).

The correct fix would be to add the line BenNanoNote

to /etc/hosts.  

Note that Ubuntu installations do the same thing.  Just changed my
/etc/hosts, and now Emacs starts up without the timeout.


GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.en.qi-hardware.com/pipermail/discussion/attachments/20101218/40823f89/attachment.pgp>

More information about the discussion mailing list