[yast-devel] YaST api to convert hostname to ipaddress
![](https://seccdn.libravatar.org/avatar/8ad39cdaa999c78c79d88d7c7cc9140d.jpg?s=120&d=mm&r=g)
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. Regards Suresh
![](https://seccdn.libravatar.org/avatar/60c1d90d97318fcc56be0b5ad42fb57a.jpg?s=120&d=mm&r=g)
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
participants (2)
-
Suresh K Hosamani
-
Vladimir Moravec