Module: DLDInternet::OpenSRS::API::Domain::MixIns::Zone::SetDNSZone
- Included in:
- Zone
- Defined in:
- lib/dldinternet/opensrs/api/domain/mixins/zone/setdnszone.rb
Instance Method Summary collapse
-
#SetDomainDNSZone(domain, records, cookiep = nil, registrant_ip = nil) ⇒ Object
noinspection RubyUnnecessaryReturnValue.
Instance Method Details
#SetDomainDNSZone(domain, records, cookiep = nil, registrant_ip = nil) ⇒ Object
noinspection RubyUnnecessaryReturnValue
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/dldinternet/opensrs/api/domain/mixins/zone/setdnszone.rb', line 12 def SetDomainDNSZone(domain,records,=nil,registrant_ip=nil) data = { object: 'DOMAIN', action: 'set_dns_zone', attributes: { domain: domain, records: records, }, } data[:cookie] = if data[:domain] = domain data[:registrant_ip] = registrant_ip if registrant_ip getResponse(data) end |