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_sdk.dns_record.list()

Return Object

ListObj[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

import files_sdk

try:
  dns_records = files_sdk.dns_record.list()
  for dns_record in dns_records.auto_paging_iter():
    # Operate on dns_record
except files_sdk.error.NotAuthenticatedError as err:
  print(f"Authentication Error Occurred ({type(err).__name__}):", err)
except files_sdk.error.Error as err:
  print(f"Unknown Error Occurred ({type(err).__name__}):", err)

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