Hi

If you use a dhclient on the Internet interface, what is the best method to
get the currently used IP address? A regexp to get the IP from "ifconfig <if>
inet”  output or check the dhclient lease file? Or maybe use python with of
http://pypi.python.org/pypi/netifaces/  or perl with Net::Address::IP::Local;

Or

 is there any known command (like sysctl for example) for it already in the OS
that I am not yet aware of?


Thanks
Peo

Reply via email to