30 Jan
2014
30 Jan
'14
09:29
Hi, On 01/30/2014 05:46 AM, Suresh K Hosamani wrote:
Hi,
I am looking for an YaST api which converts hostname to and ip address, are there any api's or do we need to write our own custom function. since openSUSE-13.1 Yast has been in ruby which has a library for that called Resolv:
require 'resolv' Resolv.getaddress 'w3.suse.cz' # => ip address as string Here are the latest official ruby docs: http://ruby-doc.org/stdlib-2.1.0/libdoc/resolv/rdoc/Resolv.html vlado
Regards Suresh
-- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org