Class Fog::DNS::Slicehost::Real
In: lib/fog/slicehost/dns.rb
lib/fog/slicehost/requests/dns/delete_zone.rb
lib/fog/slicehost/requests/dns/update_record.rb
lib/fog/slicehost/requests/dns/get_zones.rb
lib/fog/slicehost/requests/dns/get_records.rb
lib/fog/slicehost/requests/dns/get_zone.rb
lib/fog/slicehost/requests/dns/create_zone.rb
lib/fog/slicehost/requests/dns/create_record.rb
lib/fog/slicehost/requests/dns/get_record.rb
lib/fog/slicehost/requests/dns/delete_record.rb
Parent: Object

Methods

Public Class methods

Public Instance methods

Create a new record in a DNS zone - or update an existing one

Parameters

  • record_type<~String> - type of DNS record to create (A, CNAME, etc)
  • zone_id<~Integer> - ID of the zone to update
  • name<~String> - host name this DNS record is for
  • data<~String> - data for the DNS record (ie for an A record, the IP address)
  • options<~Hash> - extra parameters that are not mandatory
    • ttl<~Integer> - time to live in seconds
    • active<~String> - whether this record is active or not (‘Y’ or ‘N’)
    • aux<~String> - extra data required by the record

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘name’<~String> - as above
      • ‘id’<~Integer> - Id of zone/domain - used in future API calls for this zone
      • ‘ttl’<~Integer> - as above
      • ‘data’<~String> - as above
      • ‘active’<~String> - as above
      • ‘aux’<~String> - as above

Create a new zone for Slicehost‘s DNS servers to serve/host

Parameters

  • origin<~String> - domain name to host (ie example.com)
  • options<~Hash> - optional paramaters
    • ttl<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
    • active<~String> - whether zone is active in Slicehost DNS server - ‘Y’ or ‘N‘

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘origin’<~String> - as above
      • ‘id’<~Integer> - Id of zone/domain - used in future API calls
      • ‘ttl’<~Integer> - as above
      • ‘active’<~String> - as above

Delete a record from the specified DNS zone

Parameters

  • record_id<~Integer> - Id of DNS record to delete

Returns

  • response<~Excon::Response>: - HTTP status code will be result

Delete a zone from Slicehost‘s DNS

Parameters

  • zone_id<~Integer> - Id of zone to delete

Returns

  • response<~Excon::Response>: - HTTP status code will be result

Get an individual DNS record from the specified zone

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘record_type’<~String> - type of DNS record to create (A, CNAME, etc)
      • ‘zone_id’<~Integer> - ID of the zone to update
      • ‘name’<~String> - host name this DNS record is for
      • ‘data’<~String> - data for the DNS record (ie for an A record, the IP address)
      • ‘ttl’<~Integer> - time to live in seconds
      • ‘active’<~String> - whether this record is active or not (‘Y’ or ‘N’)
      • ‘aux’<~String> - extra data required by the record

Get all the DNS records across all the DNS zones for this account

Returns

  • response<~Excon::Response>:
    • body<~Array>:
      • ‘name’<~String> - Record NAME field (e.g. "example.org." or "www")
      • ‘data’<~String> - Data contained by the record (e.g. an IP address, for A records)
      • ‘record_type’<~String> - Type of record (A, CNAME, TXT, etc)
      • ‘aux’<~String> - Aux data for the record, for those types which have it (e.g. TXT)
      • ‘zone_id’<~Integer> - zone ID to which this record belongs
      • ‘active’<~String> - whether this record is active in the Slicehost DNS (Y for yes, N for no)
      • ‘ttl’<~Integer> - TTL in seconds

Get details of a DNS zone

Parameters

  • zone_id<~Integer> - Id of zone to lookup

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘origin’<~String> - domain name to host (ie example.com)
      • ‘id’<~Integer> - Id of the zone
      • ‘ttl’<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
      • ‘active’<~String> - whether zone is active in Slicehost DNS server - ‘Y’ or ‘N‘

Get list of all DNS zones hosted on Slicehost (for this account)

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘zones’<~Array>
        • ‘origin’<~String> - domain name to host (ie example.com)
        • ‘id’<~Integer> - Id of the zone
        • ‘ttl’<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
        • ‘active’<~String> - whether zone is active in Slicehost DNS server - ‘Y’ or ‘N‘

Get an individual DNS record from the specified zone

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘record_type’<~String> - type of DNS record to create (A, CNAME, etc)
      • ‘zone_id’<~Integer> - ID of the zone to update
      • ‘name’<~String> - host name this DNS record is for
      • ‘data’<~String> - data for the DNS record (ie for an A record, the IP address)
      • ‘ttl’<~Integer> - time to live in seconds
      • ‘active’<~String> - whether this record is active or not (‘Y’ or ‘N’)
      • ‘aux’<~String> - extra data required by the record

[Validate]