Mailinglist Archive: yast-devel (224 mails)

< Previous Next >
Re: [yast-devel] YaST api to convert hostname to ipaddress
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@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
References