New in Simple DNS Plus v. 5.0 - HTTP API

In Simple DNS Plus v. 5.0 the HTTP API has been extended with new commands and parameters to enable more powerful and easier integration with your solutions through simple scripting or programming.

addrecord, updaterecord, removerecord

These 3 new commands make it possible to add/update/remove individual DNS records of any type without having to parse and re-assemble an entire zone file.
The zone's SOA-record serial number is automatically incremented, secondary DNS servers notified, etc.

For single record updates, using these new commands is more efficient than "updatezone" because it allows secondary DNS servers to retrieve the change through an incremental zone transfer instead of a full zone transfer.

The 3 commands all take the same parameters:
zone = the name of the zone to update
name = the name of the DNS record to update in zone file format (@ = zone name, etc.)
type = the DNS record type (for example 'A' or 'MX')
data = the record data in zone file format (optional for removerecord)
ttl = the Time-To-Live value in seconds (optional)

For example:
Add a new MX-record:
Update a CNAME-record:
Remove all TXT-records for zone name:

As with all other HTTP API commands, these parameters can either be sent as part of the URL as above (GET), or as form data in the body of a POST request.

updatehost + IPv6 address

The "updatehost" command now also works with IPv6 addresses.

For example, the following adds or updates an AAAA-record:


It is now possible to retrieve a list of local zones in XML format.
The previous formats (simple, primary, secondary, extended) are also still available.


The status page is now also available as XML (previously only plain text format).
This make it possble to retrieve status information in a structured format from Simple DNS Plus, for use on web-pages and other applications etc.
The XML includes DNS request counts for the last 60 seconds, which for example could be used to render a graph (see HTML version below).


And the status page is now also available as HTML including a simple HTML graph of DNS request counts for the last 60 seconds:

Please note that Simple DNS Plus v. 5.0 also supports the "higher level" Simple DNS Plus API for .NET and COM which makes it even easier to program against DNS data in Simple DNS Plus.

Related KB articles:

Be the first to comment on this page:
(Never published. Used for replies and to show your Gravatar icon. Never used for any other purpose.)