module DLDInternet::OpenSRS::API::Domain::MixIns::Zone::GetDNSZone

Public Instance Methods

GetDomainDNSZone(domain,cookiep=nil,registrant_ip=nil) click to toggle source

noinspection RubyUnnecessaryReturnValue

# File lib/dldinternet/opensrs/api/domain/mixins/zone/getdnszone.rb, line 12
def GetDomainDNSZone(domain,cookiep=nil,registrant_ip=nil)

  data = {
      object: 'DOMAIN',
      action: 'get_dns_zone',
      attributes: {
          domain: domain,
      },
  }
  data[:cookie]             = cookiep if cookiep
  data[:domain]             = domain
  data[:registrant_ip]      = registrant_ip if registrant_ip

  getResponse(data)
end