Synchronyzing DNS Zones with Template

Plesk for Linux gives you the ability to synchronize all the DNS records containing a predefined IP address with the server-wide DNS template. The synchronization is performed according to the following rules:

  • User-modified records always remain intact (are not modified or removed under any circumstances).
  • Records added to the template are added to the zone.
  • Records removed from the template are removed from the zone (if they were not changed by users before that).
  • Records modified in the template are modified in the zone (if they were not changed by users before that).

Note: Once DNS template changes are applied to a DNS zone, Plesk starts treating it as unaltered, that is, not modified by the user. Unaltered zones keep this status until somebody modifies them. After restoration, migration, or upgrade, all zones are treated as user-modified.

To retrieve the ACL of your name server, use the get_acl operation. This operation is available on Linux only.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet synchronizing DNS zones with the template includes the sync-with-template operation node.

The graphical representation of the sync-with-template node is as follows:

DNS_sync-with-template

  • The filter node is required. It specifies the filtering rule: the used IP address, according to the dnsIpSelectionFilter filter. For more information, refer to the Available Filters section. Data type: dnsIpSelectionFilterType (dns_input.xsd).
 

Response Packet Structure

The sync-with-template node of the output XML packet is structured as follows:

DNS_sync-with-template_response

  • The result node is required. It wraps the response retrieved from the server. Data type: resultType (common.xsd).
  • The status node is required. It specifies the execution status of the add_rec operation. Data type: string. Allowed values: ok | error.
  • The errcode node is optional. It is used to return the error code when the add_rec operation fails. Data type: unsignedInt.
  • The errtext node is optional. It is used to return the error message if the add_rec operation fails. Data type: string.
 

Samples

This request packet synchronizes DNS records with the IP address 123.123.123.123 with the server-wide template.

<packet>
<dns>
<sync-with-template>
   <filter>
      <used-ip>123.123.123.123</used-ip>    
   </filter>
</sync-with-template>
</dns>
</packet>

Response:

<packet version="1.6.8.0">
  <dns>
    <sync-with-template>
      <result>
        <status>ok</status>
      </result>
    </sync-with-template>
  </dns>
</packet>
 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.