Artica Wiki

Manage DNS records with REST API

With the DNS cache service, you can create DNS records that will overload your public DNS servers. The DNS cache service is a very good alternative to a real DNS server.

With the DNS cache service, you can create DNS records that will overload your public DNS servers. 
The DNS cache service is a very good alternative to a real DNS server.
When you save/edit/remove a record, this on is dynamically added into the service memory, there is no need to restart or reload the service.

To use these API(s), you need to allow the Web API service to allow remote access

This section was improved in Artica v4.50 Service Pack 1 or v4.50 Hotfix 20240213-00

List records saved in Artica database

GET http://1.2.3.4:9503/dnscache/allrecords

List records saved in DNS memory

GET http://1.2.3.4:9503/dnscache/records

Add / update a DNS record

POST http://1.2.3.4:9503/dnscache/record

With the folowing fields:

name:  hostnane 
type:  type of record ( A, AAA, MX, SOA…)
content:  IP address or content of the record
ttl:  TTL of the record
prio:  Record priority
id: Record id
CreatePTR: Create a PTR associated to the A, AAA record

Remove a record from Artica database

GET http://1.2.3.4:9503/dnscache/delete/record/[id]

id: is the id number inside the Artica database

Remove a record from the DNS service memory

GET http://1.2.3.4:9503/dnscache/delete/memrecord/[name]

name: is the record name