DNS Records

A DNSRecord is a custom DNS configuration record for a Site.

They represent the records you will need to configure in your DNS hosting provider to allow custom domains to work with Files.com.

Show Site DNS Configuration

SDK Method

Files::DnsRecord.list

Return Object

List<DnsRecord>

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Additional Arguments

Example Request

begin
  dns_records = Files::DnsRecord.list
  dns_records.auto_paging_each do |dns_record|
    # Operate on dns_record
  end
rescue Files::NotAuthenticatedError => e
  puts "Authentication Error Occurred (#{e.class.to_s}): " + e.message
rescue Files::Error => e
  puts "Unknown Error Occurred (#{e.class.to_s}): " + e.message
end

The DnsRecord Object

Some of the methods above return a DnsRecord object. The attributes of this object are listed below.

AttributeDescription
id
string
Unique label for DNS record; used by Zapier and other integrations.
domain
string
DNS record domain name
rrtype
string
DNS record type
value
string
DNS record value