• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Apply DNS Zone changes via XML API

cipcip

Basic Pleskian
Hello guys,

I still have issues with this, I have purchased another hosting, I was able to enable by default DNS zones for subdomains, but it seems that my php script although it returns success, it does not apply the DNS to the zone.

The PHP function is as follows:

PHP:
function syncDNS($nom, $usedip)
{
    $xmldoc = new DomDocument('1.0', 'UTF-8');
    $xmldoc->formatOutput = true;
    $packet = $xmldoc->createElement('packet');
    $packet->setAttribute('version', '1.6.8.0');
    $xmldoc->appendChild($packet);
    $sync = $xmldoc->createElement('dns');
    $packet->appendChild($sync);
    $filter = $xmldoc->createElement('sync-with-template');
    $sync->appendChild($filter);
    $filterdoi = $xmldoc->createElement('filter');
    $filter->appendChild($filterdoi);
    $usedip = $xmldoc->createElement('used-ip', $usedip);
    $filterdoi->appendChild($usedip);
    return $xmldoc;
}

What the XML returns, I get:

<?xml version="1.0" encoding="UTF-8"?> <packet version="1.6.8.0"> <dns> <sync-with-template> <filter> <used-ip>123.123.123.123</used-ip> </filter> </sync-with-template> </dns> </packet>
<?xml version="1.0" encoding="UTF-8"?> <packet version="1.6.8.0"> <dns> <sync-with-template> <result> <status>ok</status> </result> </sync-with-template> </dns> </packet>

But still, If I open up Plesk and go to the specific domain, I get the following:

Warning: The DNS zone was modified. If you would like to apply DNS template changes to this zone, either click the 'Apply DNS Template Changes' button on this page or choose the 'Apply the changes to all zones' option in Server Administration Panel > Tools & Settings > DNS Template Settings > Apply DNS Template Changes.

Can you please help me out with this ?

Thank you,
Cristian
 
When I enter my license it says it is a third party license and to ask their support. My hosting support does not know how to fix this.
I could not find the submit button on the support page, maybe it did not appear because it is a third party license ?
 
I have the same problem. I have been looking for a solution for 2 hours. Nobody wrote a solution.

A solution is mentioned below but I don't understand. Please help me. Why the DNS zone is not updating.

 
Back
Top