gethostbyname in GoAhead

Nick.SIMON at syntegra.bt.co.uk Nick.SIMON at syntegra.bt.co.uk
Wed May 24 13:02:06 UTC 2000


Thanks, Chris.  I suppose this means GoAhead will see itself as 127.0.0.1 -
does this matter?  Or should I put my 'proper' name and IP address in?  

(This IMFS makes a big difference to RTEMS - I can see my mindset will have
to change!)


Many thanks,


-- Nick Simon 

> -----Original Message-----
> From: Chris Johns [mailto:cjohns at cybertec.com.au]
> Sent: 24 May 2000 13:54
> To: Nick.SIMON at syntegra.bt.co.uk
> Cc: rtems-users at oarcorp.com
> Subject: Re: gethostbyname in GoAhead
> 
> 
> Nick.SIMON at syntegra.bt.co.uk wrote:
> > 
> > My web server startup is failing because it uses gethostname and
> > gethostbyname to find the card's own IP address.  I don't 
> really want to
> > have my card registered with any off-card directory servers 
> at the moment,
> > is there any way of feeding the card's host entry into the 
> stack so that
> > gethostbyname works, or will I have to change GoAhead?
> > 
> 
> Create a file called `/etc/host.conf' and put in it :
> 
>   hosts,bind
> 
> Then create a file `/etc/hosts' and put in it :
> 
>   127.0.0.1  localhost.localdomain  localhost
> 
> To create file files you need to call `mkdir' then `open' etc.
> 
> I have some C code which creates these files which I can send 
> you if you
> wish.
> 
> 
> -- 
>  Chris Johns, mailto:cjohns at cybertec.com.au mailto:ccj at acm.org
> 



More information about the users mailing list