Module: DLDInternet::OpenSRS::API::Domain::MixIns::Get::DomainDNS

Included in:
Get
Defined in:
lib/dldinternet/opensrs/api/domain/mixins/get/domaindns.rb

Instance Method Summary collapse

Instance Method Details

#GetDomainNameservers(domain, cookiep = nil, registrant_ip = nil) ⇒ Object

noinspection RubyUnnecessaryReturnValue



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/dldinternet/opensrs/api/domain/mixins/get/domaindns.rb', line 12

def GetDomainNameservers(domain,cookiep=nil,registrant_ip=nil)

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

  getResponse(data)['nameserver_list']
end