Hi Jason,

Try using an empty file for /etc/resolv.conf

When no file is found your computer will try to lookup the name of your host 
using the resolv protocol. When a resolv.conf file is found, the resolver will 
use all methods specified. An empty file specifies no method to resolve so none 
are used.

Hope this helps you.

Regards,
Cees


----- Original Message -----
From: "Jason" <[EMAIL PROTECTED]>
To: gentoo-embedded@lists.gentoo.org
Sent: Wednesday, February 20, 2008 4:15:17 PM GMT +01:00 Amsterdam / Berlin / 
Bern / Rome / Stockholm / Vienna
Subject: [gentoo-embedded] dropbear, gethostbyname(), timeout

Ok, stupid question time.  :-)

I'm trying to do the correct, longterm solution for the following
problem.  When I ssh into my board (running dropbear-0.49), if I don't
have the client's ip address and hostname in /etc/hosts (on the board),
it'll take over a minute to log in.  Presumably hung on gethostbyname()
or similar.

Adding the name and ip to /etc/hosts is fine while I'm putzing around,
but once I deploy it, I can't guarantee what network (crossover cable?)
it'll be on, or what the client ip or hostname will be.  I'm using
udhcpc to bring the device up and I've used
/usr/share/udhcpc/default.script to dynamically write the
/etc/resolv.conf file based on input from the network's dhcp server.
But nothing I've tried works.

Has anyone encountered this?  What's the proper fix?

thx,

Jason.
-- 
gentoo-embedded@lists.gentoo.org mailing list


-- 
gentoo-embedded@lists.gentoo.org mailing list

Reply via email to