Search Engine: Elastic

Article ID: 132366, created on Mar 12, 2018, last review on Jul 14, 2018

  • Applies to:
  • Operations Automation

Symptoms

A domain cannot be edited in CP, its hosting type is set as

Plesk DNS hosting (Use Plesk nameserver as primary one, and nameservers provided by vendor as secondary)

The configured Plesk IP Address for the DNS zone belongs to a removed or recreated subscription, so the IP address is not valid anymore.

Cause

Under certain conditions, a DNS zone may not get de-synced from Plesk after subscription removal or recreation. The behavior is planned to be improved in the future OA releases in scope of CCU-14407.

Resolution

  1. Download get-account-token.py script.

  2. Fetch the account and subscription token:

    # token=$(python get-account-token.py 1000001 1000012)
    
  3. Find the APS resource of the domain DNS zone:

    # curl -k -H "APS-Token: $token" "https://localhost:6308//aps/2/resources/?implementing(http://parallels.com/aps/types/pa/dns/zone),eq(name,example.com)"
    [
            {
                    "aps":
                    {
                            "type": "http://parallels.com/aps/types/pa/dns/zone/1.1",
                            "id": "5726487f-a214-45a7-96ca-a53a125e238e",
    
  4. Nullify the externalMaster field of the DNS zone resource:

    # curl -k -H "APS-Token: $token" "https://localhost:6308//aps/2/resources/5726487f-a214-45a7-96ca-a53a125e238e" --data '{"externalMaster": null}'  -X PUT
    

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF