You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When putting a full FQDN value on property HostNameAlias, the Test function is not able to find an existing record.
Verbose logs
"[OBFUSCATED]: [[DnsRecordCname]DirectResourceAccess] A matching DNS resource record not found.",
"[OBFUSCATED]: [[DnsRecordCname]DirectResourceAccess] DNS record property 'Ensure' is not correct. Expected 'Present', actual 'Absent'.",
"[OBFUSCATED]: [[DnsRecordCname]DirectResourceAccess] DNS record is NOT in the desired state.",
"[OBFUSCATED]: LCM: [ End Test ] [[DnsRecordCname]DirectResourceAccess] False in 4.7190 seconds."
I think the issue is in line 57 of source/Classes/002.DnsRecordCname.ps1. The filter adds a '.' to the property HostNameAlias: $_.RecordData.HostNameAlias -eq "$($this.HostnameAlias).
This makes the filter skip the good record.
The solution could be: determining first if the variable 'HostNameAlias' already is a proper FQDN with a dot in the end.
Operating system the target node is running
OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2004
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-US
OsMuiLanguages : {en-US}
PowerShell version and build the target node is running
Problem description
When putting a full FQDN value on property HostNameAlias, the Test function is not able to find an existing record.
Verbose logs
DSC configuration
Suggested solution
I think the issue is in line 57 of source/Classes/002.DnsRecordCname.ps1. The filter adds a '.' to the property HostNameAlias:
$_.RecordData.HostNameAlias -eq "$($this.HostnameAlias).
This makes the filter skip the good record.
The solution could be: determining first if the variable 'HostNameAlias' already is a proper FQDN with a dot in the end.
Operating system the target node is running
PowerShell version and build the target node is running
DnsServerDsc version
The text was updated successfully, but these errors were encountered: