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?

If not, can you program something that could call ifconfig and pull the IP 
from the results?

-- 
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

Reply via email to