Symptoms
Update MS DNS task fails with the following error output:
Destination host 'ns01.example.com' (#19), IP '10.1.1.10' : Provisioning request failed. Unknown error 0x80131500 [<response><errorContext description="Unable to create DNS record of type A in zone domain.tld.
Input data:
----------------------------------------------
Record FQDN: sub.domain.tld.
Zone: domain.tld
Dns server: ns01.example.com" code="0x80131500" executeSeqNo="61"><errorSource namespace="DNSManager" procedure="CreateResourceRecord"/></errorContext></response>]
The DNS record type in the error may be different: A, MX, TXT, SRV, etc.
Subdomain sub.domain.tld DNS records contain manually created NS records.
Cause
In case NS records exists for a subdomain, it is considered as delegated by MS DNS, so new records cannot be added.
Resolution
One of the following solutions is possible:
- Remove NS records for the subdomain.
- Avoid creating any other DNS records for the subdomain.