[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to Enable DNS (Using PPPD)
- Date: Fri, 02 Nov 2001 13:58:07 +1100
- From: cjohns at cybertec.com.au (Chris Johns)
- Subject: How to Enable DNS (Using PPPD)
Mike Siers wrote:
> Thanks for the hints. The current version of the pppd code does
> have a reference to the resolv.conf file. I would prefer to have
> the DNS entries updated using C code directly since my application
> has no need for a file system.
Well the TCP/IP stack needs a small number of files. To me the over head
of using them is worth it.
> I have added code to set the rtems_bsdnet_nameserver_count and
> rtems_bsdnet_nameserver values.
I do not think this code should be put back into RTEMS as this allows
applications to use interfaces that are not standard to the stack. These
RTEMS extensions may not exists in future ports of the stack as the
filesystem now exists and is stable.
> But my calls to gethostbyname()
> are still failing (error code 2). I will try a few other things
> and let you know if I get it to work.
The entries are only read from this table at start up. By the time you
add the extra code to support a C function call API I suspect you will
use more memory than the file will use. Please reconsider using the
Chris Johns, cjohns at cybertec.com.au