Hi , I'm having an issue using the Windows DNS plugin in conjunction with a DNS Challenge Alias and I haven't found much documentation around them together.
I've reviewed this
and implemented the CNAME on the domain in question. While I can get the txt record created on the alias DNS server the submit validation always fails - I'm guessing it's querying in the wrong spot.
I'm not entirely sure about my setup though and would appreciate some advice.
While I don't particularly want to share domain names at this point I was hoping to get some feedback on how I have this configured.
In this example I have a authoritive name server for the domain xyz.com called auth.xyz.com and an alias DNSserver called acme.xyz.com
My command to get this to work is to query and do the update on the alias DNS server like so.
$pArgs = @{
WinServer = 'acmedns.xyz.com'
wincred=get-credential
WinUseSSL=$true
}
The run the below with the DNSalias switch
New-PACertificate "x1234.xyz.com" -DNSSleep 300 -AcceptTOS -Contact "my@email.com" -Plugin Windows -dnsalias "_acme-challenge.x1234.xyz.com" -PluginArgs $pArgs -verbose -directory LE_STAGE
I have a CNAME setup on the authoritive name server which looks like this in the x1234.xyz.com domain
_acme-challenge CNAME acmedns.xyz.com.
So providing credentials to the alias DNS server acmedns.xyz.com and using the command above I can see the DNS challenge record being created there - however I always get back an authorization invalid via the submit-challengeValidation command when the new-pacertificate is run.
I'm guessing there is a config issue here with either the CNAME / DNSalias or even the way I'm doing the update via the pArgs with the Alias DNS Server but unsure how to troubleshoot further. If I do a lookup against the authoritive domain I do see the carnoical name populated
_acme-challenge.x1234.xyz.com Canonical name = acmedns.xyz.com
Is there a way to test this further to ensure the cname is being redirected to the right spot and that the query should see the actual text file ?