Dns - Endpoints

GET
/v2/dns/domain
Forward Zones
List all Forward Zones.
Request URL
/v2/dns/domain
Example Response
{
success: true,
results: #,
	-result: [
		-{
			domain_id: "DOMAIN_ID",
			name: "DOMAIN_NAME",
			client: "CLIENT_ID",
			subclient: SUB_USER_ID
		}
	]
}
                      
Example Code


                      
POST
/v2/dns/domain
Create Zone
Create a new forward DNS zone.
Request URL
/v2/dns/domain
Parameters
  • @param {domain} (string) REQUIRED Fully qualified domain name.
      Required Regex Validation
    • ^(?:[a-zA-Z0-9]+(?:\-*[a-zA-Z0-9])*\.)+[a-zA-Z]{2,6}$
Example Response
{
	success: true,
	results: 1,
	result: DOMAIN_ID
}
                      
Example Code


                      
DELETE
/v2/dns/domain
Remove Zone
Remove a DNS Zone.
Request URL
/v2/dns/domain
Parameters
  • @param {domain} (int) REQUIRED Domain ID to Delete
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: 1,
	result: "ID: DOMAIN_ID removed"
}
                      
Example Code


                      
GET
/v2/dns/record/{domain}
Zone Records
List all records for Forward Zone
Request URL
/v2/dns/record/{domain}
Parameters
  • @param {domain} (int) REQUIRED Domain ID
      Required Regex Validation
    • [0-9]
Example Response
{
success: true,
results: 4,
	-result: [
		-{
			id: "11",
			domain_id: "DOMAIN_ID",
			name: "RECORD_NAME",
			type: "SOA",
			content: "anycast01.scalabledns.com. admin.scalabledns.com. 1346780533 86400 7200 3600000 86400",
			ttl: "86400"
		},
		-{
			id: "12",
			domain_id: "DOMAIN_ID",
			name: "RECORD_NAME",
			type: "A",
			content: "RECORD_CONTENT",
			ttl: "86400"
		},
		-{
			id: "13",
			domain_id: "DOMAIN_ID",
			name: "RECORD_NAME",
			type: "NS",
			content: "anycast01.scalabledns.com",
			ttl: "86400"
		},
		-{
			id: "14",
			domain_id: "DOMAIN_ID",
			name: "RECORD_NAME",
			type: "NS",
			content: "anycast02.scalabledns.com",
			ttl: "86400"
		}
	]
}
                      
Example Code


                      
POST
/v2/dns/record
Create Record
Create a new forward record.
Request URL
/v2/dns/record
Parameters
  • @param {domain} (int) REQUIRED Domain ID
      Required Regex Validation
    • [0-9]
  • @param {record} (string) REQUIRED Record Name
      Required Regex Validation
    • ^(?:[a-zA-Z0-9]+(?:\-*[a-zA-Z0-9])*\.)+[a-zA-Z]{2,6}$
  • @param {type} (enum) REQUIRED Record Type
    • A
    • AAAA
    • NS
    • CERT
    • CNAME
    • DNSKEY
    • DS
    • KEY
    • LOC
    • MX
    • NAPTR
    • NS
    • NSEC
    • RP
    • RRSIG
    • SOA
    • SPF
    • SSHFP
    • SRV
    • TXT
  • @param {content} (string) REQUIRED Record Content
Example Response
{
	success: true,
	results: 1,
	result: "Record Added"
}
                      
Example Code


                      
DELETE
/v2/dns/record
Remove Record
Remove a Forward record from zone.
Request URL
/v2/dns/record
Parameters
  • @param {domain} (int) REQUIRED Domain ID
      Required Regex Validation
    • [0-9]
  • @param {record} (int) REQUIRED Record ID
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: 1,
	result: "ID: RECORD_ID removed"
}
                      
Example Code


                      
GET
/v2/dns/reverse/{service}
Reverse DNS Zones
List of all reverse DNS Zones
Request URL
/v2/dns/reverse/{service}
Parameters
  • @param {service} (int) Optional Service ID
      Required Regex Validation
    • [0-9]
Example Response
{
	success: true,
	results: 6,
	-result: {
		198.#.#.103: "No Record Found",
		198.#.#.56: "your.reverse.record",
		198.#.#.57: "No Record Found",
		2605:f700:c0:####::####:2482: "your.reverse.record",
		2605:f700:c0:####::####:9ef1: "your.reverse.record",
		2605:f700:c0:####::####:5a09: "No Record Found"
	}
}
                      
Example Code


                      
PUT
/v2/dns/reverse
Update Reverse DNS Record
Update Reverse DNS Record
Request URL
/v2/dns/reverse
Parameters
  • @param {ip} (string) REQUIRED IP Address
      Required Regex Validation
    • ^(((2(5[0-5]|[0-4][0-9])|[01]?[0-9][0-9]?)\.){3}(2(5[0-5]|[0-4][0-9])|[01]?[0-9][0-9]?))$
    • ^(::|(([a-fA-F0-9]{1,4}):){7}(([a-fA-F0-9]{1,4}))|(:(:([a-fA-F0-9]{1,4})){1,6})|((([a-fA-F0-9]{1,4}):){1,6}:)|((([a-fA-F0-9]{1,4}):)(:([a-fA-F0-9]{1,4})){1,6})|((([a-fA-F0-9]{1,4}):){2}(:([a-fA-F0-9]{1,4})){1,5})|((([a-fA-F0-9]{1,4}):){3}(:([a-fA-F0-9]{1,4})){1,4})|((([a-fA-F0-9]{1,4}):){4}(:([a-fA-F0-9]{1,4})){1,3})|((([a-fA-F0-9]{1,4}):){5}(:([a-fA-F0-9]{1,4})){1,2}))$
  • @param {record} (string) REQUIRED Reverse DNS Entry
      Required Regex Validation
    • ^(?:[a-zA-Z0-9]+(?:\-*[a-zA-Z0-9])*\.)+[a-zA-Z]{2,6}$
Example Response
{
	success: true,
	results: 1,
	result: "Record Updated"
}
                      
Example Code


                      
POST
/v2/dns/reverse
Update Records
Update multiple existing reverse dns records.
Request URL
/v2/dns/reverse
Parameters
  • @param {records} (json) REQUIRED records in json array
Example Response

                      
Example Code
Sample code coming shortly.

/v2/example/dns/reverse/post.php