Cees Koolen wrote:
> Hi Jason,
> 
> ----- Original Message -----
> From: "Jason" <[EMAIL PROTECTED]>
> To: [email protected]
> 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?
> 

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

thx, that worked.  I feel dumb.  :-)

Jason.
-- 
[email protected] mailing list

Reply via email to