Mike Burger wrote:
> Philippe Moutarlier <[EMAIL PROTECTED]> said:
>
> > Hi,
> >
> > I am at lost about how to access the IP distributed by a DHCP server
> > from a C program.
> >
> > The gethostbyname requires the entry for my name to be either on DNS
> > (but then how do I know the name given by my server ?) or in my etc/host
>
> I'm not a programmer, and know nothing of C, but...
>
> Isn't there a "gethostbyaddr" function?
sure, would work if I knew the IP, wouldn't it ??
>
>
> If not, can you program something that could call ifconfig and pull the IP
> from the results?
>
sure again. I was looking for something a little more simple ...
Philippe
>
> --
> Mike Burger
> CompuCom Information Services
> http://www.compucomis.net
> (215) 946-5573
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list