Encountered error adding TXT record: <HttpError 412 when requesting https://dns.googleapis.com/dns/v1/projects/cloud-servers-214706/managedZones/430986XXXXXXXX4294/changes?alt=json returned "Precondition not met for 'entity.change.deletions[0]'">
I do not get an error when I replace the * with a hostname and the dry run completes successfully.
How do I make a wildcard certificate in this manner?
Is there anything in that zone that would conflict with the addition of the required TXT entry?
It really doesn't help you to obscure your FQDN with:
Perhaps it would be easy to spot if it really was: -d *.some.sub.domain.com
[which means you haven't created the folders to put that TXT record into]
or a real and valid name that can easily be checked for DNS irregularities....
No, we are left to wonder and speculate.
FYI:
The validation for a wildcard doesn't make an * entry in DNS.
The fact that a unique name passes checks means your DNS credentials are GOOD.
The mistake must be in a TXT record creation overlap/conflict.
But none of the DNS experts here can help you without a real name.
But there have also been two entries in a TXT record in another zone I used successfully using the Cloudflare plugin, although that was not using a wildcard.
Why would anything being done be different when trying for a wildcard, when it works for a host address? Isn't the TXT entry being added to the domain root TXT record in both cases?
Perhaps it would be easy to spot if it really was: -d *.some.sub.domain.com
[which means you haven’t created the folders to put that TXT record into]
The wildcard domain is in the form of *.mydomain.co.uk. I can provide the domain if it helps any more than the information I have already given.
No.
The TXT record is "_acme-challenge."+FQDN.
so XYZ.DOMAIN.CO.UK = _acme-challenge.XYZ.DOMAIN.CO.UK
while *.DOMAIN.CO.UK = _acme-challenge.DOMAIN.CO.UK
Neither of which that should conflict with the TXT for: DOMAIN.CO.UK
...unless...
You actually have a TXT record for: *.DOMAIN.CO.UK
FYI - your dig request won't show all that is in a zone.
[a full zone transfer would]
Hi. I found the problem. I didn’t notice it before, as there are so many records in the zone, but there was already a TXT record for _acme-challenge.mydomain.co.uk, from an earlier time where I was using a certbot certificate without the dns plugin. Removing that TXT record has solved this issue.