Sha256: 39796a1ce8202c84bcae57d161732aea0858ed84c1e10c68ec8912d897b44f49
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
module Lumberg module Cpanel class DnsLookup < Base # Public: Basic DNS functionality. This function will return the ip # address associated with a domain. If multiple addresses are associated # with that domain, only one will be returned # # options - Hash options for API call params (default: {}) # :domain - String domain you wish to lookup # # Examples # api_args = { host: "x.x.x.x", hash: "pass", api_username: "user" } # dns_lookup = Lumberg::Cpanel::DnsLookup.new(api_args.dup) # # dns_lookup.name_to_ip(domain: 'google.com') # # Returns Hash API response. def name_to_ip(options = {}) perform_request({ :api_function => 'name2ip' }.merge(options)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lumberg-2.0.0.pre4 | lib/lumberg/cpanel/dns_lookup.rb |
lumberg-2.0.0.pre3 | lib/lumberg/cpanel/dns_lookup.rb |