File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5656 - Use ` New-ArgumentException ` instead of ` New-InvalidArgumentException ` .
5757- DSC_DnsServerClientSubnet
5858 - Fixed wrong SYNAPSIS.
59+ - DnsRecordCname
60+ - Fixed bug with dot at the end [[ Issue #266 ] ( https://github.com/dsccommunity/DnsServerDsc/issues/266 )] .
5961- DnsRecordA
6062 - Fixed [[ Issue #281 ] ( https://github.com/dsccommunity/DnsServerDsc/issues/281 )] .
6163- Pester tests
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ class DnsRecordCname : DnsRecordBase
5959 }
6060
6161 $record = Get-DnsServerResourceRecord @dnsParameters - ErrorAction SilentlyContinue | Where-Object - FilterScript {
62- $_.RecordData.HostNameAlias -eq " $ ( $this.HostnameAlias ) ."
62+ # Ensure that HostNameAlias we using for filtering contains precisely one dot at the end.
63+ $_.RecordData.HostNameAlias -eq $ ($this.HostNameAlias.Trim (' .' ) + ' .' )
6364 }
6465
6566 return $record
You can’t perform that action at this time.
0 commit comments