Skip to content

Commit e3a575a

Browse files
committed
Add apostrophes to support wildcard DNS entries. Fixes issue Azure#365.
1 parent 75dc26c commit e3a575a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cross Product/DNS - Find Dangling DNS Records/AzDanglingDomain/AzDanglingDomain.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AzDanglingDomain'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.0.9'
15+
ModuleVersion = '0.0.10'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @('Desktop', 'Core')

Cross Product/DNS - Find Dangling DNS Records/AzDanglingDomain/Export/Get-DanglingDnsRecords.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ Function Process-CNameList {
508508

509509
#Azurefd can have subdomains also which we cannot mark as dangled
510510
if ($item.FQDN -match "azurefd.net") {
511-
$count = (($AzResourcesHash.GetEnumerator() | Where { $item.FQDN -match $_.key }) | Measure-Object).Count
511+
$count = (($AzResourcesHash.GetEnumerator() | Where { $item.FQDN -match '$_.key' }) | Measure-Object).Count
512512
if ($count -gt 0) {
513513
[void]$AzCNameMatchingResources.add($item)
514514
}

0 commit comments

Comments
 (0)