| Our secondary DNS service, DNS Unlimited, has a simple API that allows users to automate the creation, deletion, and refreshing of secondary zones. This is useful if you want to integrate our service with a hosting control panel or other third-party system. OverviewThe API uses simple HTTP POST calls and can be easily implemented by anyone with some scripting knowledge. The return value of all functions is "OK" if the command succeeded and "ERROR: " followed by a description of the error if there was a problem. API URL: https://www.dnsunlimited.com/api/ FunctionsAdd Secondary ZoneThis function creates a new secondary zone on the system and immediately queues a zone transfer from the master server. Required POST Values:
Delete ZoneThis function removes a zone from the system. Required POST Values:
Serial RefreshThis function causes all DNS Unlimited name servers to check their serial number against the master server. If the master server has a newer serial number, a zone transfer will be initiated. This can be used to force an update when one of the servers misses a notification or to force an update immediately after making changes to a zone. Required POST Values:
Force TransferThis function causes all DNS Unlimited name servers to transfer a zone even if the serial number hasn't been incremented. Required POST Values:
Sample Code (PHP)The following is some simple PHP code to add a new secondary zone:
|