Sha256: 9c63522ba48a898cac1a030bcec0f96ff5a3a7f7632336af4575900534559a1c
Contents?: true
Size: 948 Bytes
Versions: 15
Compression:
Stored size: 948 Bytes
Contents
module Lumberg module Cpanel # Public: Allows users to access networking functions class Net < Base # Public: Perform a traceroute back to your local IP address while # displaying packet speed at each hop in milliseconds. # # Returns Hash API response def traceroute perform_request({ api_function: 'traceroute' }) end # Public: Performs an A record DNS query for the hostname presented via # the 'host' variable, with a 60 second timeout. If more than one A record # exists for a given FQDN, all will be returned. # # options - Hash options for API call params (default: {}) # :host - String fully qualified domain name, either host.domain.com or # domain.com # # Returns Hash API response def query_hostname(options = {}) perform_request({ api_function: 'dnszone' }.merge(options)) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems